SMART datagrid v.1 > Classes > GridView
The location distance of first row of page when the grid is in Paging state.
If the value 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 1 and pageSize is 10, it will display from the first row rather than the 11th row.
You can call setPageAndOffset to change the page index and offset at the same time. Please refer to Paging Offset example.
Defaults to 0.
$('#incpage').click(function (ev) {
// Always display from the first row.
var newPage = grid.pageIndex() + 1;
grid.setPageOffset(-newPage * grid.pageSize());
grid.setPageIndex(newPage);
});