The demo represents the sorting capabilities of Telerik RadGrid. Three
sorting directions are supported: Ascending, Descending
and Default (no sorting), which can be changed by
clicking on the column header text. The sorting functionality can be enabled by setting
the AllowSorting property to true. Furthermore, to force only two-way sorting (ascending and descending),
set the GridTableView.AllowNaturalSort or GridTableView.SortExpressions.AllowNaturalSort property to
false.
Since v5.0 RadGrid provides the ability to colorize the sorted column. Use RadGrid.SortingSettings.SortedBackColor
to apply color to all the sorted columns, or GridColumn.SortedBackColor
to apply color to the respective column (GridColumn setting ovverides the SortedBackColor
from SortingSettings).
Telerik RadGrid also supports Multi-Column Sorting
and Sorting Expressions, which are demonstrated in more details
in the Advanced sorting example in this section.