Hi,
I have issue I'm hoping someone can help me solve.
I'm trying to build a small grid that will act as the master browser for a larger detail grid. Since space is therefore limited, I've set the paging size (rowNum value) to 5.
However, it seems that when I try and go past the first page, the request sent through is for a page size of 12, rather than the size I've set it to.
Any ideas?
The code I'm using is:
$(function(){
jQuery(“#editgrid”).jqGrid({
scroll: 1,
mtype: “POST”,
url:'/office.ls?page=form&action=data&form=accesscontrol&category=admin&prefilter=',
datatype: “json”,
colNames:[“ID”,”Name”,”Category”,”Status”],
colModel:[{name:'pid',width:50},
{name:'nm',sortable:false,width:200,editable:true},
{name:'cat',sortable:false,width:100,editable:true},
{name:'st',sortable:false,width:60,editable:true},],
jsonReader : {page: 'pno',repeatitems: false,id: 'pid'},
rowNum:5,
rowList:[5],
pager: '#pagered',
prmNames: {page:”pno”,rows:”psze”, sort: “sort”,order: “sord”, search:”_search”, nd:”nd”},
sortname: 'pid',
sortorder: “ASC”,
viewrecords: true,
height: 200,
caption:”Access Control”,
onSelectRow: function(ids) {
if(ids == null) {
ids=0;
switchSubGrid(ids)
} else {
switchSubGrid(ids)
}
}
});
jQuery(“#editgrid”).jqGrid('navGrid','#presize',
{edit:true,add:false,del:false,view:true,search:true},
{}, // edit options
{}, // add options
{}, //del options
{multipleSearch:true, groupOps: [ { op: “AND”, text: “all” } ]} // search options
);
});
Cheers,
Gen
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top