SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.topIndex  property

显示在当前网格的顶级行的index。 

如果设置为不同于现有值的其他值,就会被垂直滚动。 

Getter
function topIndex(): Number
Setter
function setTopIndex(value: Number)
Code -1
    // 当点击按钮时,将会进行滚动。
    $('#btnUp').click({
        grid.setTopIndex(grid.topIndex() + 1);
    });
See Also
leftPos