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
AllowSortingproperty to true. Furthermore, to force only two-way sorting (ascending and descending), set the GridTableView.AllowNaturalSort or
GridTableView.SortExpressions.AllowNaturalSort property to false.
Use RadGrid.SortingSettings.SortedBackColor to apply color to all the sorted columns, or GridColumn.SortedBackColor to apply color to the respective column (GridColumn setting overrides 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.
The R1 2022 SP1 introduces the ability to show a NoSort icon to indicate that an unsorted column can be sorted. It is controlled by the Grid.SortingSettings.ShowNoSortIcons(default value false) and GridColumn.ShowNoSortIcon properties.