Kendo.Mvc.UI.Fluent.GridBoundColumnGroupableSortBuilder

Defines the fluent interface for configuring bound columns sortable options

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 =>
            groupable.Sort(sort => sort.Dir(ListSortDirection.Ascending))
        )
    )
%>
In this article
Not finding the help you need?