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.AllowReordering property to false.

Reorder Events

During the reorder action, the gantt component triggers the below three events.

  1. The columnDragStart event triggers when column header element drag (move) starts.
  2. The columnDrag event triggers when column header element is dragged (moved) continuously.
  3. The columnDrop event 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.