Forum
12:57
16/08/2010
Hi there,
finally I ran into a problem I don't seem to be able to solve myself. I have a working example online and can describe some simple steps to reproduce the problem. I guess it must be my fault somehow, for the jquery-examples work OK when doing the same thing.
1. http://www.baubook.at/m/PHP/Ka.....obreaker=y
2. swap the 1st and 2nd column (by dragging them within the header)
3. turn over to page 2 by using the pager at the bottom
4. Now we see the problem: The content of the 1st and 2nd row is exchanged. the headers are OK: first column is called "Titel", but the colored boxes should still be in the middle column, and not in the first! Of course I checked the XML-response, and the column-order IS OKAY THERE.
I'd really appreciate some help with this…
Cheers, Paul
09:36
16/08/2010
Update: I have a theory & workaround. Maybe this helps someone.
Immediatly after reordering the columns, I save the new order to the database (AJAX). So when I turn over to page 2, the server already KNOWS that the columns were reordered and therefore delivers XML with reordered columns. I assume that jqgrid does NOT assume that the webserver already has the information about the column-reordering, and therefore jqgrid reorders the data in the XML ITSELF, therefore destroying the order because the server already reordered it.
I'd be very happy if anybody could confirm this theory/behaviour.
Workaround: Upload/Rebuild the grid after column-reordering. Wastes a bit of time, but I can live with that. The workaround will be online soon, so you might not see the described mis-behaviour by using the posted URL anymore.
Cheers, Paul
Most Users Ever Online: 715
Currently Online:
16 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