SMART datagrid v.1 > Classes > GridBase

[ grids ver.1.3.5]   Back  Forward

DataLudi.GridBase.onLeftPosChanged  event

It will be fired after changing the horizontal location (horizontally scrolled) being displayed in grid by clicking scroll button or setting leftPos

After scrolling the row, onTopIndexChanged event will be fired. 

function onLeftPosChanged (grid: GridBase, newPos: Integer, oldPos: Integer);
Returns
Void
Parameters
grid - GridBase.
newPos - Integer.
oldPos - Integer.
Code -1
    grid.onLeftPosChanged = function (grid, newPos, oldPos) {
        console.log('Grid horz scrolled: ' + oldPos + ' => ' + newPos;
    };
See Also
onTopIndexChanged
leftPos
topIndex
Examples
Focused Cell