SMART datagrid v.1 > Classes > GridView

Back  Forward

DataLudi.GridView.onPageCountChanged  event

It will be fired if the total page number is changed when the grid is in paging state. 

When the data set is changed or explicitly change pageCount, this event will be fired. 

function onPageCountChanged (grid: GridView, newCount: Integer, oldCount: Integer);
Returns
Void
Parameters
grid - GridView.
newCount - Integer.
oldCount - Integer.
Code -1
    grid.onPageCountChanged = function (grid, newCount, oldCount) {
        $('#pagecount').val(newCount);
    };
See Also
Paging Overview
onPaged
onPageIndexChanging
onPageIndexChanged
pageIndex
pageCount
paged
Examples
Paging
Paging Data
Paging Offset
Paging Rows