<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.

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy