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
after column-reordering: wrong content in columns when paging
16/08/2010
12:57
Avatar
smi
New Member
Members
Forum Posts: 2
Member Since:
16/08/2010
sp_UserOfflineSmall Offline

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… Frown

Cheers, Paul

20/08/2010
09:36
Avatar
smi
New Member
Members
Forum Posts: 2
Member Since:
16/08/2010
sp_UserOfflineSmall Offline

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

http://www.eigelb.at

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information