Forum


21:24

22/08/2009

Hi,
I'm using the jqgrid addind the pager to navigate in the info, the problem is that when I select in the dropdownlist the number of registers I want to show it update the grid but when I want no navigate using the navigation arrows the content aren't changed, there are some special property I have to set to have this feature.
There is the code I'm using for the grid:
jQuery(”#informesTable”).jqGrid({
url: 'showInfo.php',
datatype: 'json',
width:850,
height:'auto',
mtype: 'GET',
colNames: ['Id', xxx', 'xxx', 'xxx', 'xxx', 'xxx' , 'xxx' , 'xxx'],
colModel: [
{ name: 'Id', index: 'Id', width: 40,hidden:true, align: 'left', editable:false},
{ name: 'xxx', index: 'xxx', width: 120,align: 'left', editable:false},
{ name: 'xxx', index: 'xxx', width: 40,align: 'left', editable:false},
{ name: 'xxx',index:'xxx', width: 130,editable: false},
{ name: 'xxx',index:'xxx', width: 130,editable: false},
{ name: 'xxx',index:'xxx', width: 150,editable: false},
{ name: 'xxx',index:'xxx', width: 100,editable: false},
{ name: 'xxx',index:'xxx', width: 80,editable: false}
],
pager: jQuery('#pager'),
rowNum: 10,
rowList: [10, 15, 30, 50],
sortname: “ID”,
sortorder: “desc”,
loadonce: true,
multiselect: true,
viewrecords: true,
editurl: 'EditData.php',
imgpath: '/content/images',
caption: 'Infol'
});
jQuery(”#pager”).jqGrid('navGrid',”#pager”,{edit:false,add:false,del:false});
13:41

Moderators
30/10/2007

Hello,
It is really difficult to me to understand the problem, but for what I see maybe you will need to check your server side code
when the page is changed.
Best Regards
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: 715
Currently Online:
47 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