SMART datagrid v.1 > Classes > GridView

Back  Forward

DataLudi.GridView.pageIndex  property

The location of page being displayed when the grid is in Paging state. 

It is the value from 0 to pageCount - 1. The value beyond the range will be set by narrowing into the range without an error. In the case of actually changing the location of page, onPageIndexChanging, onPageIndexChanged events will be fired in order. 

When pageCount becomes smaller, it will adjust pageIndex internally. At this point, onPageIndexChanged event will be fired without onPageIndexChanging. 

Defaults to -1.

Getter
function pageIndex(): Integer
Setter
function setPageIndex(value: Integer)
Code -1
    $('#incpage').click(function (ev) {
        grid.setPageIndex(grid.pageIndex() + 1);
    });
See Also
Paging Overview
paged
setPaging
pageCount
onPageIndexChanging
onPageIndexChanged
Examples
Paging
Paging Data
Paging Offset
Paging Rows