The Reorder
module is used for reordering columns.
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
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
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
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