Forum
16:24
10/08/2009
Hello Tony,
the current implementation of jqGrid has one problem. Let us we use adjacency model and fill the grid with JSON data returned from the server. The documentation described only the existance of the parent column having the parent id, but not the order in which the items should be placed in the JSON. Depend on the server code and the method how the data are hold in the database it is possible that the server fill for example first the noded from the level 0 (root), then its direct children (level 1 items) and only after that the childrens of the nodes from the level 1. The current server code fill the nodes in the same order in which they are in the JSON input. On the node expanding jqGrid just search the child noded and display it without placing the child nodes imedietely after its parent:
(see the demo here).
I see at least three solutions of the problem:
- Include in the documentation, that the server have to sort the items which it includes in the serponse in the order of full expanded tree. (It's of caurse not a real solution of the problem, but it's better this as nothing)
- The jqGrid should reorder items from the JSON input before including there with respect of the current code.
- On expanding of the node jqGrid should verify that the opening children are before of the next sibling tree node.
I would personnaly prefer the second way.
Best regards
Oleg
09:25
08/02/2010
Hello Tony,
This is happening when we do load at once also.. Grid fills the data in the order how we return from the server. Am using JqGrid 4.1.2 version.
Load at once is the one which will be used in many cases (where we have not much records). Please consider this request in the future release.. Before next release will you provide any patch work for this?
Most Users Ever Online: 715
Currently Online:
41 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