SMART datagrid v.1 > Classes > GridView

Back  Forward

DataLudi.GridView.setPaging  method

Start or cancel the paging. 

If paging is false, it will cancel the paging. If it is true, it will display as much as the number of rows specified by pageSize in each page. If pageCount is less than 0, it will automatically calculate the number of pages to display all rows stored in dataSource. If it is greater than 0, it will display only the specified pages. If the value of pageOffset is less than 0, it will display from the former row as much as the specified number than the rows which will have been displayed originally, and if greater than 0, it will display from the latter. For example, if it is -10, when pageIndex is 2 and pageSize is 10, it will display from the oth row rather than the 11th row. 

function setPaging (paging: Boolean, pageSize: Integer, pageCount: Integer, pageOffset: Integer);
Returns
Void
Parameters
paging - Boolean. required.
pageSize - Integer. Defaults to 10.
pageCount - Integer. Defaults to -1.
pageOffset - Integer. Defaults to 0.
Code -1
    grid.setPaging(true, 10, -1, 0);
    // Cancel the paging.
    grid.setPaging(false);
Note
See Also
pageSize
pageOffset
pageCount
pageIndex
paged
Examples
Paging
Paging Data
Paging Offset
Paging Rows