SMART datagrid v.1 > Classes > DisplayOptions

Back  Forward

DataLudi.DisplayOptions.columnMovable  property

If it is true, the user can change the location of columns by dragging the mouse. 

You can also specify whether it can be changed individually by specifying movable property of column. And, if specify parentChangable property as true, you can also change parent column group. In other words, you can pick it out of parent column group and move to the top column or the child of other column group. 

Defaults to true.

Getter
function columnMovable(): Boolean
Setter
function setColumnMovable(value: Boolean)
Code -1
    grid.setOptions({
        display: {
            columnMovable: true,
            parentChangable: true
        }
    });
Code -2
    grid.setDisplayOptions({
        columnMovable: true,
        parentChangable: true
    });
Code -3
    grid.displayOptions().setColumnMovable(true);
Note
See Also
parentChangable
GridColumn.movable
Examples
Column Moving
Hello Grid