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_TopicIcon
Jqgrid pager issue
02/12/2009
21:24
Avatar
edgar9000
Member
Members
Forum Posts: 14
Member Since:
22/08/2009
sp_UserOfflineSmall Offline

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});

pagerImage Enlarger

03/12/2009
13:41
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

03/12/2009
17:17
Avatar
edgar9000
Member
Members
Forum Posts: 14
Member Since:
22/08/2009
sp_UserOfflineSmall Offline

Thank you for the answer, it was indeed a problem with my server side code

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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