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
ronumbers: true bug
08/06/2010
14:11
Avatar
Ivan
New Member
Members
Forum Posts: 2
Member Since:
08/06/2010
sp_UserOfflineSmall Offline

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"}
]');

08/06/2010
14:35
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

08/06/2010
15:01
Avatar
Ivan
New Member
Members
Forum Posts: 2
Member Since:
08/06/2010
sp_UserOfflineSmall Offline

Thank's, it works

But I found another "feature":

When I retrive my json data, jqGrid forms table:

<table>

   <tr id="37" />

   <tr id="38" />

   <tr id="39" />

</table>

This is good. But after local sorting:

<table>

   <tr id="1" />

   <tr id="2" />

   <tr id="3" />

</table>

There are new identifiers !

08/06/2010
15:06
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

10/06/2010
15:14
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

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