Tree Grid / Sorting / Default Sorting

Blazor Tree Grid Example - Sorting

Loading Syncfusion Blazor Server Demos…

1 of 8 pages (40 items)

This sample demonstrates the sorting functionality in Tree Grid. To sort data by a column, click the corresponding column header. To sort by multiple columns, hold the CTRL key and click the desired headers.

Sorting is enabled by setting the AllowSorting property to true. Multi-column sorting allows sorting by multiple columns simultaneously, and it can be achieved by holding the CTRL key and clicking on multiple column headers to apply sorting on each. To remove sorting from a specific column, hold the SHIFT key and click the corresponding header.

In this demo, the Tree Grid is initially sorted by the "Category" and "Order Name" columns in ascending order using the TreeGridSortSettings configuration.

More information about sorting can be found in this documentation section.

Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE