Forum
14:11
08/06/2010
Hello,
I'm using jqGrid 3.7 beta. "rownumbers: true" work's incorrectly. Numbers begin with "row_number – rows_count" and increment by 1
Here is my jqGrid initialization code and retrived json:
$(grid).jqGrid({
caption: 'some caption',
url: '<%= Url.Action("Calculation", "Analytics", new {calcId = Model.Data.Id}) %>', [asp.net mvc magic]
mtype: 'POST',
datatype: 'json',
loadui: 'block',
loadonce: true,
colModel: colModel,
rownumbers: true,
gridview: true
});
{"rows":[
{"id":"1","cell":["string1",1,122466.740000]},
{"id":"2","cell":["string2",3,15113.070000]},
{"id":"3","cell":["string3",2,0.000000]}
]}
here is my colModel variable:
var colModel = JSON.parse('[
{"align":"left","index":"B","label":"label1","name":"B","sortable":true,"sorttype":"text"},
{"align":"left","index":"BB","label":"label2","name":"BB","sortable":true,"sorttype":"float"},
{"align":"left","index":"BC","label":"label3","name":"BC","sortable":true,"sorttype":"float"}
]');
14:35
Moderators
30/10/2007
Hello,
Be a sure that your response contain the following parameters
{"records":"x","page":y,"total":z, rows: [...] }
Note that these should be set correctly too.
The romnumbers are calculated on these parameters.
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.
15:06
Moderators
30/10/2007
Hello,
This is fixed here:
http://github.com/tonytomov/jq.....11818dc519
The fix is not provided into the 3.7 Beta
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.
15:14
Moderators
30/10/2007
Hello,
There is another fix on this in GitHub.
http://github.com/tonytomov/jq.....6a1cc9edc2
Thanks.
Best Regards
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:
47 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