Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Andre Costa on May 29, 2009 12:55
open dhtmlx forum
Dhtmlxgrid group by multiple columns

Hi,

I am using dhtmlxgrid for the first time and I am creating a table whose information must be grouped by some columns (more than one). I would like to know if dhtmlxgrid implements this kind of group-by, and how can I use it, i.e., what is the command line to do this?

Another doubt. In the same table, I need to show some many information with the group-key in the group header. Is it possible? How can I do this?

Thanks for attention!

Best Regards
Answer posted by dhxSupport on Jun 01, 2009 01:40
>>I would like to know if dhtmlxgrid implements this kind of group-by
Unfortunately dhtmlxGrid doesn't support such functionality.

>> In the same table, I need to show some many information with the group-key in the group header
You can use custom group format. 
 mygrid.customGroupFormat=function(text,count){
   
  return "Grouped by "+text+", there are "+count+" related records"
   
  };
You can test example here http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/extended_modes/pro_group_custom_format.html