Example of Multi Sorting in Javascript Tree Grid Control

/
/
Multi Sorting

This sample demonstrates the Tree Grid multi sorting feature. To sort two or more columns, hold the CTRL key and click the column header.

More Details...

Order 3
Crystals9/10/20181120
Glass beads
Solid crystals5/22/2018254
Lead glassware
Solid crystals2/7/2018542
Pharmaceutical Glassware
Solid crystals4/19/2018324
Order 2
products1/10/20181944
Blue Veined Cheese
Dairy7/10/2018370
Butter
Dairy9/18/2018413
Fresh Cheese
Dairy6/8/2018323
Tilapias
Frozen seafood2/5/2018278
White Shrimp
Frozen seafood5/22/2018560
Order 1
Seafoods2/3/20171395
Preserved Olives
Edible6/10/2017125
1 of 2 pages (16 items)
Order Name
Category
Order Date
Units
Description

Sorting feature enables us to order the data in a particular direction. It can be enabled by setting the allowSorting as true. To sort a Tree Grid column by 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, Simply click the column header to sort a column. Check the checkboxes in the properties panel to sort a column and uncheck to remove sort from a column. Injecting Module: Tree Grid features are segregated into individual feature-wise modules. To use sorting feature, we need to inject Sort using the TreeGrid.Inject(Sort) section. More information on the sorting feature configuration can be found in this documentation section.