Forum
Topic RSS
13:21
29/01/2010
OfflineHi,
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
08:57
Moderators
30/10/2007
OfflineHello,
I see you use scroll:1. The problem is fixed in GitHub and I hope that 3.6.3 release will be available soon.
Best Regerds
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 994
Currently Online:
27 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home