Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Frederic on Apr 14, 2008 06:54
open dhtmlx forum
Order groups created by groupBy

I'm using the groupBy function, and I'd like to sort the groups. Is it possible ?
Answer posted by Support on Apr 14, 2008 07:14
Yes, sorting works in case of grouping.

If grid sorted by column , by which grid grouped - order of groups changed
If grid sorted by any other columns - the order of groups not changed, but rows in groups sorted in necessary order.

You can use same command as in normal mode to force grid sorting
    grid.sortRows(....