EasyUI Forum
June 28, 2024, 11:31:47 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: treegrid / columns / formatter for a field question  (Read 5400 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« on: February 01, 2016, 07:16:18 AM »

Hi,

How can I define different formatter for footer row in treegrid?

Or understand that current row is footer row.

Thanks
//V
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: February 02, 2016, 02:04:38 AM »

Load footer rows with special field value and then indicate these footer rows in the 'formatter' function.
Code:
formatter: function(value,row){
if (row.isFooter){ // is footer row
//...
}
}
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #2 on: February 02, 2016, 02:48:20 AM »

Thanks!

I have found another way: I'm checking if row.id=='foot-row-id0'

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!