PDA

View Full Version : Customize grid grouping header?



abcdef
31 Oct 2011, 10:54 PM
I am using the grouping feature for a grid, and currently, I have the following:


groupHeaderTpl: '{name} - {rows.length}'

I would like to show an icon for certain groups in the grid depending on whether or not a certain field is set in any one of the items that belong to that particular group. Is there a way I can do this?

Thanks!

mitchellsimoens
16 Nov 2011, 11:42 AM
What is it based on? The groupField?

abcdef
16 Nov 2011, 11:51 AM
What is it based on? The groupField?

Yes..

mitchellsimoens
16 Nov 2011, 11:53 AM
You should be able to specify a full XTemplate definition and then you can use the functions. You can also do inline JS in the string

abcdef
16 Nov 2011, 12:03 PM
You should be able to specify a full XTemplate definition and then you can use the functions. You can also do inline JS in the string

Oh ok! That is what I was looking for. Thanks!