in the gird init method, i used pageModel like this:
pageModel:{type:"remote", curPage:1, totalPages:1, rPP:1000, rPPOptions:[1000,5000,10000]}
and don't set data.
but totalPages display NaN, what should i do ?
var Grid1_obj = {
height:'100%-70',
showTitle:false,
stripeRows:true,
collapsible:{on:false,toggle:false},
showTop:true,
showBottom:true,
sortable:true,
selectionModel:{type: 'cell', mode: 'block'},
scrollModel:{autoFit: false},
virtualX:true,
virtualY:true,
groupModel:Grid1_cols.groupModel,
contextMenu: {
on: true,
cellItems: Grid1_bodyItems},
sortModel: {
type: 'remote',
single: true,
space: true,
multiKey: null
},
rowInit:function( ui ){
var rowData = ui.rowData;
var fcolor = rowData.FCOLOR;
if (!fcolor) {
fcolor = rowData.fcolor;
}
if (fcolor) {
return { cls: fcolor};}
},
resizable:false,
wrap:false,
hwrap:false,
numberCell:{show: true, resizable: true, title: "#"},
colModel:Grid1_cols.pqCols,
pageModel:{type:"remote", curPage:1, totalPages:1, rPP:1000, rPPOptions:[1000,5000,10000,50000]},
rowBorders:true
};
$('#Grid1_GRID').pqGrid(Grid1_obj);