GridBoundColumnGroupableSortBuilder
Methods
Compare(System.String)
Sets the sort compare when grouping.
Parameters
compare - System.String
A JavaScript function which is used to compare the groups
Example
@(Html.Kendo().Grid(Model)
.Name("grid")
.Filterable()
.Columns(columns =>
{
columns.Bound(c => c.Name).Groupable(grp=>grp.Sort(x=>x.Compare("compareByTotal")));
}))
Dir(System.ComponentModel.ListSortDirection)
Sets the sort direction when grouping.
Parameters
direction - System.ComponentModel.ListSortDirection
The sort direction of the list.
Example
@(Html.Kendo().Grid(Model)
.Name("grid")
.Filterable()
.Columns(columns =>
{
columns.Bound(c => c.Name).Groupable(grp=>grp.Sort(x=>x.Dir(ListSortDirection.Ascending)));
}))