SMART datagrid v.1 > Classes > GridColumn
DataLudi.GridColumn.movable property
Specify true if want to enable the user to change the location of column.
The column included in Column Group basically can be moved only within the group. In order to move out of the group, that is, in order to change the group, DisplayOptions.parentChangable should also be specified as true.
Defaults to true.
- Getter
- function movable(): Boolean
- Setter
- function setMovable(value: Boolean)
- Note
- If DisplayOptions.columnMovable is false, you will not be able to move it regardless of this property value.
- Regardless of whether it is movable by user, you can call ColumnGroup.setVisibleIndex to change the display location of column.
Code -1
var col = grid.columnByName('colAddr');
col.setMovable(false);
- See Also
- DisplayOptions.columnMovable
- DisplayOptions.parentChangable
- ColumnGroup.setVisibleIndex
- Examples
- Column Grouping
- Column Moving