SMART datagrid v.1 > Classes > GridColumn
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.
// It stops the columns on the left of column2 from being moved.
$('#setMovable).click(function () {
if (column.distance() < column2.distance()) {
column.setMovable(false);
}
});