<kendo:grid-sortable>

If set to true the user could sort the grid by clicking the column header cells. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.

Example

<kendo:grid>
    <kendo:grid-sortable></kendo:grid-sortable>
</kendo:grid>

Configuration Attributes

allowUnsort boolean

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

Example

<kendo:grid-sortable allowUnsort="allowUnsort">
</kendo:grid-sortable>

initialDirection java.lang.String

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

Example

<kendo:grid-sortable initialDirection="initialDirection">
</kendo:grid-sortable>

mode java.lang.String

The sorting mode. If set to "single" the user can sort by one column. If set to "multiple" the user can sort by multiple columns. And the "mixed" mode enables you to sort in single mode when clicking and switch to multiple when holding ctrl key.

Example

<kendo:grid-sortable mode="mode">
</kendo:grid-sortable>

showIndexes boolean

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

Example

<kendo:grid-sortable showIndexes="showIndexes">
</kendo:grid-sortable>
In this article
Not finding the help you need?