Forum

July 12th, 2025
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
problem with auto-paging
29/01/2010
13:21
Avatar
genoceres
New Member
Members
Forum Posts: 2
Member Since:
29/01/2010
sp_UserOfflineSmall Offline

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

01/02/2010
08:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

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.

01/02/2010
10:16
Avatar
genoceres
New Member
Members
Forum Posts: 2
Member Since:
29/01/2010
sp_UserOfflineSmall Offline

Thanks, I'll try setting it to "True" instead.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information