Hello,
This thread describes how to sort the groups (1 level
grouping) programmatically:
http://www.telerik.com/forums/sorting-the-group-programmatically
Example:
//get
reference to the Grid widget
var grid = $("#grid").data("kendoGrid");
//set asc
direction to the group (for example grouped by FirstName)
grid.dataSource.group({field:"FirstName", dir: "asc" });
//set desc
direction to the group (for example grouped by FirstName)
grid.dataSource.group({field:"FirstName", dir: "desc" });
We have tried to apply this approach to the grid with few
levels of grouping and had no luck.
Could you please
·
let us know if that approach works for grid
with subgroups
·
provide working example of code
Thank you.
This thread describes how to sort the groups (1 level
grouping) programmatically:
http://www.telerik.com/forums/sorting-the-group-programmatically
Example:
//get
reference to the Grid widget
var grid = $("#grid").data("kendoGrid");
//set asc
direction to the group (for example grouped by FirstName)
grid.dataSource.group({field:"FirstName", dir: "asc" });
//set desc
direction to the group (for example grouped by FirstName)
grid.dataSource.group({field:"FirstName", dir: "desc" });
We have tried to apply this approach to the grid with few
levels of grouping and had no luck.
Could you please
·
let us know if that approach works for grid
with subgroups
·
provide working example of code
Thank you.