sorting

Configures runtime sorting.

Type: Object

A user can sort rows by values of a single or multiple columns depending on the value of the sorting.mode option.

DevExtreme HTML5 JavaScript jQuery Angular Knockout Widget TreeList Sorting

To apply sorting to a column, a user clicks its header or selects a command from the context menu.

DevExtreme HTML5 JavaScript jQuery Angular Knockout Widget TreeList Sorting

Note that rows are sorted within their hierarchical level.

See Also

ascendingText

Specifies text for the context menu item that sets an ascending sort order in a column.

Type: String
Default Value: 'Sort Ascending'

clearText

Specifies text for the context menu item that clears sorting settings for a column.

Type: String
Default Value: 'Clear Sorting'

descendingText

Specifies text for the context menu item that sets a descending sort order in a column.

Type: String
Default Value: 'Sort Descending'

mode

Specifies the sorting mode.

Type: String
Default Value: 'single'
Accepted Values: 'none' | 'single' | 'multiple'

The following selection modes are available in the widget:

  • Single
    Rows can be sorted by values of a single column only.

  • Multiple
    Rows can be sorted by values of several columns.

When using the widget as an ASP.NET MVC Control, specify this option using the GridSortingMode enum. This enum accepts the following values: Single, Multiple and None.