Using smartgwt-2.4 and facing a client-side problem while sorting an already grouped grid.
Have a ListGrid (with an underlying datasource) without the header and displaying some formatted HTML data in rows.
Able to sort the grid when it is not grouped by any field, but when its grouped by some field its not getting sorted using the grid's sort() method after applying the SortSpecifiers i.e. Field and Direction.
Sample code:
-------------
Step 1) ListGrid is already grouped by Field-1
grid.groupBy("Field-1");
Step 2) Now trying to sort the grid on different field.
grid.setSort(new SortSpecifier[] { new SortSpecifier("Field-2",
SortDirection.DESCENDING) });
grid.sort();
If we skip Step-1 then sorting is working correctly in Step-2 otherwise when grid is already grouped the sorting won't be applicable with-in the grid's group tree.
Please suggest if anybody has encountered such scenario.
Have a ListGrid (with an underlying datasource) without the header and displaying some formatted HTML data in rows.
Able to sort the grid when it is not grouped by any field, but when its grouped by some field its not getting sorted using the grid's sort() method after applying the SortSpecifiers i.e. Field and Direction.
Sample code:
-------------
Step 1) ListGrid is already grouped by Field-1
grid.groupBy("Field-1");
Step 2) Now trying to sort the grid on different field.
grid.setSort(new SortSpecifier[] { new SortSpecifier("Field-2",
SortDirection.DESCENDING) });
grid.sort();
If we skip Step-1 then sorting is working correctly in Step-2 otherwise when grid is already grouped the sorting won't be applicable with-in the grid's group tree.
Please suggest if anybody has encountered such scenario.
Comment