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
TreeGrid Adjacency Model: Load More than one branch with depth > 1 simultaneously
29/04/2011
12:40
Avatar
Carlo
Hamburg
Member
Members
Forum Posts: 7
Member Since:
31/08/2010
sp_UserOfflineSmall Offline

Hi Folks,

A TreeGrid with Adjacency Model like this

[+] Root

has to be expanded to this Tree just by expanding the Root element:

[-] Root

|        [-] Branch 1

|        |       [+] Branch 1.2

|        `       Leaf 1.1

|        [-] Branch 2

|        |        Leaf 2.1

|        `       Leaf 2.2

`        [-] Branch 3

  |        Leaf 3.1

  `       Leaf 3.2

 

Note that the contents of the branches are loaded in one request.

{

"rows":[

{"id":"B1","cell":["Branch 1",1,"0",false,true]}

{"id":"B12″,"cell":["Branch 1.2",2,"B1",false,false]}

{"id":"L11″,"cell":["Leaf 1.1",2,"B1",true,false]}

{"id":"B2″,"cell":["Branch 2",1,"0",false,true]}

{"id":"L21″,"cell":["Leaf 2.1",2,"B2",true,false]}

{"id":"L22″,"cell":["Leaf 2.2",2,"B2",true,false]}

{"id":"B3″,"cell":["Branch 3",1,"0",false,true]}

{"id":"L31″,"cell":["Leaf 3.1",2,"B3",true,false]}

{"id":"L32″,"cell":["Leaf 3.2",2,"B3",true,false]}

]

}

The result I'm getting is the following:

[-] Root

|        [-] Branch 1

|        |       [+] Branch 1.2

|        `       Leaf 1.1

|        [-] Branch 2

|        |        Leaf 2.1

|        `       Leaf 2.2

`        [-] Branch 3

  |        Leaf 3.1

  `       Leaf 3.2 <—– MISSING

Is the adjacency model not suited for loading more than one level at the Time or is this a Bug?

Greetings Carlo

EDIT: I'm using JQGrid 3.8.2

29/04/2011
15:10
Avatar
Carlo
Hamburg
Member
Members
Forum Posts: 7
Member Since:
31/08/2010
sp_UserOfflineSmall Offline

PROBLEM SOLVED

While searching through the forum I found this thread giving me a hint what I was doing wrong

/blog/?page_id=393/treegrid/treegrid-20-rows-limit/

I had to set the rowNum attribute to a higher value to display the missing records.

In case of my example rowNum was 8, limiting the number of records that could be loaded per request.

Since I'm not the first one to run into this, I would consider to update the TreeGrid Documentation and give a hint that even in TreeGrid Mode the rowNum attribute limits the number of records that can be loaded.

Greetings Carlo

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
40 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