SMART datagrid v.1 > Classes > GridBase
DataLudi.GridBase.onColumnMoved event
It will be fired after the user drags the mouse to change the location of column or directly calls GridColumn.displayIndex to change the display location of column.
function onColumnMoved (grid: GridBase, column: GridColumn, newParent: ColumnGroup, oldParent: ColumnGroup);
- Returns
- Void
- Parameters
- grid - GridBase.
- column - GridColumn.
- newParent - ColumnGroup.
- oldParent - ColumnGroup.
- Note
Code -1
grid.onColumnMoved = function (grid, column, newIndex, oldIndex) {
console.log('Column moved: ' + column.displayText());
};
- See Also
- onColumnParentChanged
- GridColumn.displayIndex
- GridColumn
- ColumnGroup
- Examples
- Column Moving
- Column Grouping