SMART datagrid v.1 > Classes > GridColumn

Back  Forward

DataLudi.GridColumn.distance  property

Relative distance value which can be used as the value of comparing the location of columns being displayed. 

If the distance of one column is greater than the other column, it means it is displayed more further from the left corner of grid. It is the same as comparing by displayIndex within Column Group arranged through ColumnGroupLayout.HORIZONTAL

This value is not relative value within the group but comparable value among the grid. 

Getter
function distance(): Integer
Note
Code -1
    // It stops the columns on the left of column2 from being moved.
    $('#setMovable).click(function () {
        if (column.distance() < column2.distance()) {
            column.setMovable(false);
        }
    });
See Also
displayIndex
visible
ColumnGroup
Examples
Column Visibility
Column Moving
Column Grouping