I already have a server function for fetching pages of data. It receives a current page, and number of records per page.
I want to submit current page of the grid to that function. At the moment I am doing pageModel.curPage, but that doesnt change from its initial value.
As a result, when I page through data, I always get the first page.
var pageM = {
type: 'remote',
curPage: 1,
rPP: 30,
rPPOptions: [5, 30, 50]
}
var dataM = {
....
getUrl: function () {
return { url: "JqueryGridHelper.aspx", data: "cur_page=" + pageM.curPage + "&records_per_page=" + pageM.rPP };
},
}