Forum

November 2nd, 2014
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_Related Related Topics sp_TopicIcon
Pagination Button Disabled
21/10/2011
00:26
Avatar
alifaisal01
New Member
Members
Forum Posts: 1
Member Since:
21/10/2011
sp_UserOfflineSmall Offline

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({

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
14 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