Forum
11:40
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?
03:07
Moderators
30/10/2007
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.
08:02
02/09/2009
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.
07:46
Moderators
30/10/2007
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.
04:50
02/09/2009
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.
22:57
Moderators
30/10/2007
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66