Kendo.Mvc.UI.Fluent.GridSortableSettingsBuilder

Defines the fluent API for configuring GridSortableSettings

Methods

Enabled(System.Boolean)

Enables or disables sorting.

Example (ASPX)

@(Html.Kendo().Grid(Model)
    .Name("Grid")
    .Sorting(sorting => sorting.Enabled((bool)ViewData["enableSorting"]))
)

AllowUnsort(System.Boolean)

If set to true the user can get the grid in unsorted state by clicking the sorted column header.

Parameters

value System.Boolean

The value for AllowUnsort

ShowIndexes(System.Boolean)

If set to true the user will see sort sequence indicators for sorted columns.

Parameters

value System.Boolean

The value for ShowIndexes

InitialDirection(System.String)

Determines the inital (from un-sorted to sorted state) sort direction. The supported values are asc and desc.

Parameters

value System.String

The value for InitialDirection

SortMode(Kendo.Mvc.UI.GridSortMode)

Defines the sort modes supported by Kendo UI Grid for ASP.NET MVC

Parameters

value Kendo.Mvc.UI.GridSortMode

The value for SortMode

In this article
Not finding the help you need?