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
Wrong ordering when hiddengrid=true
21/09/2009
11:40
Avatar
simon
Guest
Guests

Hello,

I didn't investigate the causes of this issue so I'm trying to provide as much details as possible. I am using version 3.5.3.

I have a grid which is populated manually with JSON data and is configured to display row numbers. If I have more than 10 rows – say 20 – I noticed that if I set hiddengrid=false they are ordered correctly: 1,2,3..9,10,11..20, while if I set hiddengrid=true then, when I expand the grid, I see them ordered as 1,10,11..,2,20,3,4.. which is wrong.

Is this a known issue?

24/09/2009
01:37
Avatar
Simone
Member
Members
Forum Posts: 8
Member Since:
02/09/2009
sp_UserOfflineSmall Offline

Anyone?

25/09/2009
03:07
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Just tested this behaviour in the demo. No problem for me, but I will say , since you use custom build of JSON  data, check if you pass correctly the following parmeters

"records","page","total"

All builds depend on these parameters

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.

05/10/2009
08:02
Avatar
Simone
Member
Members
Forum Posts: 8
Member Since:
02/09/2009
sp_UserOfflineSmall Offline

I'd need some help here Tony. I cannot get it to work, and what I realized so far is that if I set hiddengrid=true then the rows are ordered correctly until I try to expand the grid. Once I click on the button to expand the grid, the right ordering 1,2,3 becomes 1,10,2,3...

Looks like the grid is reordering the rows when it is expanded or something like that.

06/10/2009
07:46
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Please post the code and the server response after you expand the grid.

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.

16/11/2009
04:50
Avatar
Simone
Member
Members
Forum Posts: 8
Member Since:
02/09/2009
sp_UserOfflineSmall Offline

Hi Tony, sorry for the late reply. I've investigated this issue a bit more and found out that the problem is caused by the call to populate() in the handler to the event attached to the button to expand and collapse the grid in the header.

That looks like the reason why the rows are ordered correctly when the grid is loaded for the first time and it is hidden, while expanding it results in a wrong ordering. Removing the call to populate() in the handler to the click of the expand/collapse button seems to fix it, but it's not a clean solution.

I tried upgrading to 3.6 and the behavior is the same.

16/11/2009
22:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Not sure if this is a bug. Please check your code again and what you try to do. Also check your response. If you populate the grid manually with json data you will need to care about this.

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:
59 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