Sorting in EJ 1 Angular TreeGrid
19 Sep 2017 / 1 minute to read
The TreeGrid control for JavaScript has built-in support for Sorting one or more columns.
Sorting columns
TreeGrid allows the items to be sorted in ascending or descending order based on the selected column by enabling the allowSorting
property in TreeGrid control. The following code example shows you how to enable Sorting in TreeGrid control.
<ej-treegrid id="TreeGridControl" [allowSorting]="true"
//...>
</ej-treegrid>
Multicolumn sorting
TreeGrid allows you to sort multiple columns by clicking the desired column headers while holding the Ctrl
key. The following code example shows you how to enable Multicolumn sorting in TreeGrid control.
<ej-treegrid id="TreeGridControl" [allowSorting]="true" [allowMultiSorting]="true"
//...>
</ej-treegrid>
The following screenshot shows the output of multicolumn sorting in TreeGrid control.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page