SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.topIndex  property

index of the top row which is displayed in the current grid. 

If set a value differently from the existing one, it will be scrolled vertically. 

Getter
function topIndex(): Number
Setter
function setTopIndex(value: Number)
Code -1
    // Scroll when click the button.
    $('#btnUp').click({
        grid.setTopIndex(grid.topIndex() + 1);
    });
See Also
leftPos