EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: mzeddd on February 01, 2016, 07:16:18 AM



Title: treegrid / columns / formatter for a field question
Post by: mzeddd 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


Title: Re: treegrid / columns / formatter for a field question
Post by: stworthy 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
//...
}
}


Title: Re: treegrid / columns / formatter for a field question
Post by: mzeddd on February 02, 2016, 02:48:20 AM
Thanks!

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