Kendo.Mvc.UI.Fluent.GridGroupableSortSettingsBuilder

Defines the fluent interface for configuring groupable sort settings.

Methods

Compare(System.String)

Sets the sort compare when grouping.

Example (ASPX)

<%= Html.Kendo().Grid(Model)
    .Name("Grid")
    .Columns(columns =>
        columns.Bound(o => o.OrderDate)
    )
    .Groupable(groupable => groupable.Sort(sort => sort.Compare("compareByTotal")))
%>

Dir(System.ComponentModel.ListSortDirection)

Sets the sort direction when grouping.

Example (ASPX)

<%= Html.Kendo().Grid(Model)
    .Name("Grid")
    .Columns(columns =>
        columns.Bound(o => o.OrderDate)
    )
    .Groupable(groupable.Sort(sort => sort.Dir(ListSortDirection.Ascending)))
%>
In this article
Not finding the help you need?