Sorting feature enables us to order the data in a particular direction. It can be enabled by setting the allowSorting as true.
Sorting feature enables us to order the data in a particular direction. It can be enabled by setting
allowSorting as true.
To sort a Tree Grid column simply click the column header. The icons (ascending) and (descending) specifies the sort direction of a column.
By default, multi-sorting is enabled in Tree Grid, to sort multiple column hold CTRL key and click the column header. To clear sort for a column, hold SHIFT key and click the column header.
While using Tree Grid in a touch device, you have an option for multi sorting in single tap on the Tree Grid header. By tapping on the Tree Grid header, it will show the toggle button in small popup with sort icon. Now tap the button to enable the multi-sorting in single tap.
In this demo, select the column and direction from the properties panel then click the Sort button. Use the Clear button to remove sort for the selected column.
Tree Grid features are segregated into individual feature-wise modules. To use sorting feature, we need to inject
Sort module into the
More information on the sorting feature configuration can be found in this documentation section.