Column reordering in gantt control
18 Nov 20181 minute to read
The column reordering can be done by dragging a column header from one index to another index within the TreeGrid. To enable reordering, set the AllowReordering property to true.
NOTE
You can disable the reordering of a particular column by setting the
Columns.AllowReorderingproperty tofalse.
Reorder Events
During the reorder action, the gantt component triggers the below three events.
- The
columnDragStartevent triggers when column header element drag (move) starts. - The
columnDragevent triggers when column header element is dragged (moved) continuously. - The
columnDropevent triggers when a column header element is dropped on the target column.
Reorder multiple columns
Multiple columns can be reordered at a time by using the reorderColumns method.