SMART datagrid v.1 > Classes > GridView
It will be fired just before the page location displayed in grid is changed when the grid is in paging state.
If explicitly return false within this event handler, it will cancel page change. After the change, onPageIndexChanged event will be fired.
grid.onPageIndexChanging = function (grid, newPage, oldPage) {
if (grid.pageIndex() == 0 && newPage == 2) {
return false;
}
};