Forum



00:26

21/10/2011

Hi Guys,
I am using the latest version of JQuery and having some issues with the paging after the grid is loaded. I am using JSON and loadonce: true. I have about 70 rows of data and page size 20. so I should have 4 pages. when the grid loads its showing current page as "0″ while it should be one. and all the paging buttons (first, pre, next, last) are disabled they get enabled if I refresh the grid in which case it re-loads the data or if I click on either first or previous buttons.
Can anyone please help me figure out what might be causing this issue? I have the code attached.
jQuery("#schTable").jqGrid('navGrid','#schTablePager',{edit:false,add:false,del:false}); }); editurl : '/local/Sch/post' loadonce: true, height: '100%', caption: "Schedule", }, root: function(obj) { return obj; } id: "Id", repeatitems : false, jsonReader: { sortorder: "desc", viewrecords: true, sortname: 'splitDistrict', pager: '#schTablePager', rowList:[10,20,30], autowidth: true, rowNum: "20", ], {name:'notes',index:'notes', width:60, editable:true} {name:'fri',index:'fri', width:12, align:"right", editable:true}, {name:'thu',index:'thu', width:12, align:"right", editable:true}, {name:'wed',index:'wed', width:12, align:"right", editable:true}, {name:'tue',index:'tue', width:12, align:"right", editable:true}, {name:'mon',index:'mon', width:12, align:"right", editable:true}, {name:'fwBeginDate',index:'fwBeginDate', width:25, align:"right", editable:true}, {name:'fiscalWeek',index:'fiscalWeek', width:20, align:"right", editable:true}, {name:'quarter', index:'quarter', width:15}, {name:'contactName',index:'contactName', width:40}, {name:'splitDistrict', index:'splitDistrict', width:20}, formatoptions:{keys:true}}, {name: 'myac', width:55, fixed:true, sortable:false, resize:false, formatter:'actions', colModel:[ colNames:[' ', 'Sp Dist', 'Contact Name', 'Quarter', 'Fis Week','FW Beg Date','Mon','Tue','Wed','Thu','Fri', 'Notes'], datatype: "json", url:'/local/schedule',jQuery("#schTable").jqGrid({
Most Users Ever Online: 715
Currently Online:
54 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