Forum


11:39

Moderators
30/10/2007

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.
05:53

02/08/2008

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},{},{},{},{});
08:48

Moderators
30/10/2007

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.
Most Users Ever Online: 715
Currently Online:
74 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