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
reordering of tree grid items on expanding or sorting on filling
Tags: tree grid
10/07/2011
16:24
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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:

Image Enlarger

(see the demo here).

I see at least three solutions of the problem:

  1. 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)
  2. The jqGrid should reorder items from the JSON input before including there with respect of the current code.
  3. 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 

13/10/2011
09:25
Avatar
Akshitha
Member
Members
Forum Posts: 8
Member Since:
08/02/2010
sp_UserOfflineSmall Offline

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?

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information