Reorder
12 Sep 20252 minutes to read
The Reorder module is used for reordering columns.
Methods
reorderColumnByIndex
Changes the position of the Grid columns by field index.
| Parameter | Type | Description |
|---|---|---|
| fromIndex | number |
Defines the origin field index. |
| toIndex | number |
Defines the destination field index. |
Returns void
reorderColumnByModel
Reorders a column in the Grid using column models.
Moves the specified column (fromColumn) before the target column (toColumn),
supporting both standard and stacked header columns.
| Parameter | Type | Description |
|---|---|---|
| fromColumn | Column |
The column model to be moved. |
| toColumn | Column |
The target column model before which the source column will be placed. |
Returns void
reorderColumnByTargetIndex
Changes the position of the Grid columns by field index.
| Parameter | Type | Description |
|---|---|---|
| fieldName |
string | string[]
|
Defines the field name. |
| toIndex | number |
Defines the destination field index. |
Returns void
reorderColumns
Changes the position of the Grid columns by field names.
| Parameter | Type | Description |
|---|---|---|
| fromFName |
string | string[]
|
Defines the origin field names. |
| toFName | string |
Defines the destination field name. |
Returns void