Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pyt on Sep 24, 2008 03:26
open dhtmlx forum
Grouping by value

Hi,

i'm trying to use grouping by value. Is it possible to change the label of a group?

Thanks in advance!
Answer posted by dhtmlx support on Sep 24, 2008 07:50
Yes, it is.
It can be done by setting custom group format.

grid.customGroupFormat=function(text,count){
    return "Grouped by "+text+", there are "+count+" related records"

};

Please, see the sample in the documentation: dhtmlxGrid/samples/extended_modes/pro_group_custom_format.html