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
pagination exaple with jsondata.
19/08/2008
06:28
Avatar
sureshchatla
Member
Members
Forum Posts: 3
Member Since:
02/08/2008
sp_UserOfflineSmall Offline

Hi,

how to restrict rows in a page.

Pagination is not woking for me.

If possible, can you give me an example.

19/08/2008
11:39
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

If you use local data type this is not possible.

If you use server side language you can control this via option

rowNum

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.

20/08/2008
05:53
Avatar
sureshchatla
Member
Members
Forum Posts: 3
Member Since:
02/08/2008
sp_UserOfflineSmall Offline

tony said:

If you use local data type this is not possible.

If you use server side language you can control this via option

rowNum


I tried but still not working.

Here is my code:

jQuery("#navgrid").jqGrid({       
       url:'<s:url action="UserListAction" namespace="/user" ></s:url>',
    datatype: "json",
    height:300,
    width:1500,
       colNames:['User Name','First Name','Last Name','Phone','Fax','Role','Password','Customer Id'],
       colModel:[
           {name:'userEmailAddress',index:'userEmailAddress',editable:true,editoptions:{size:10}},
          {name:'userFname',index:'userFname',editable:true,editoptions:{size:10},width:80},
          {name:'userLname',index:'userLname',editable:true,editoptions:{size:10},width:80},
          {name:'userPhone',index:'userPhone',editable:true,editoptions:{size:10},width:70},
          {name:'userFax',index:'userFax',editable:true,editoptions:{size:10},width:70},
          {name:'userRoles',index:'userRoles',editable:true,edittype:"select",editoptions:{value:"10001:ROLE_RESELLER_SUPERVISOR;10002:ROLE_RESELLER_ADMIN;10003:ROLE_RESELLER_OPERATOR;10004:ROLE_CUSTOMER_SUPERVISOR;10005:ROLE_CUSTOMER_ADMIN;10006:ROLE_CUSTOMER_OPERATOR"}},
          {name:'userPassword',index:'userPassword',editable:true,editoptions:{size:10}},
          {name:'customerId',index:'customerId',editable:false,editoptions:{size:10}}
      ],
       rowNum:5,
       rowList:[5,10,15],
       imgpath: gridimgpath,
       jsonReader: {
                   root:"users",
                   page:"page",
                   total:"total",
                   records:"records",
                   repeatitems:false,
     },
       pager: jQuery('#pagerde'),
       sortname: 'userEmailAddress',
    caption:"User Management",
    onPaging : function() { alert("I'm executed before the request");},
    viewrecords: true,
    editurl:'<s:url action="AddUserAction" namespace="/user" />'
}).navGrid('#pagerde',{edit:false,add:false,del:false,search:false},{},{},{},{});

20/08/2008
08:48
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

How many number of rows return your server? - check this.

The portion of returned data should be controlled from server.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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