SMART datagrid v.1 > Classes > GridView

Back  Forward

DataLudi.GridView.setPageAndRows  method

Specify the Page Location and Rows which will be displayed in this page at the same time when the grid is in Paging state. 

If do not specify Page Rows, it will display the data rows determined by pageSize and pageIndex. You can separately set rows by pageRows. Please refer to Paging Rows example. 

function setPageAndRows (page: Integer, rows: Array[Integer]);
Returns
Void
Parameters
page - Integer. required.
rows - Array[Integer]. required.
Code -1
    $('#incpage').click(function (ev) {
        grid.setPageAndRows(grid.pageIndex() + 1, [1, 2, 3, 4, 5]);
    });
See Also
paged
pageRows
setPaging
pageCount
Examples
Paging
Paging Data
Paging Offset
Paging Rows