New to KendoReact? Start a free 30-day trial
Sorting
SortingPremium
The KendoReact Gantt enables you to sort single and multiple data-bound columns.
Getting Started
To enable sorting:
- Set the
sortableoption of the Gantt. - Utilize the
sortoption to apply the sorting styles and buttons to the affected columns. - Set the
fieldoption of the Gantt column. - When
sortableis configured and the user tries to sort a column, theonSortChangeevent is emitted. Handle theonSortChangeevent where you have the option to sort the data programmatically, to make a request to the server for server sorting, or to use theorderByfunction which automatically processes the data.
The following example demonstrates the minimum required configuration for sorting the Gantt records.
Change Theme
Theme
Loading ...