Login Register

Dijit 1.1 Tree Loading children from server (Lazy Load) <<SOLVED>>

HI

I am using
*Dojo 1.1
*IE 6/ FF 2

what i want to do is to create a lazy loading tree as my tree has over 20,000 nodes.
I achieved this using the lazyload store in dojox.

but i would like to know is there a better way to do this ?
I do NOT want to use Querystore doesnt work on my system. also test fail for the same.

can anybody please help me as to how to use mayHavechildren and getItemchildrem and also models which have come with the new dojo 1.1

My tree looks like

a
b
c
.
.
z

now how do i get a + sign before a-z

also once i get a + sign , where can i program to pick children from server.
i do not need any advances dnd features just simple loading of tree from server as i traverse it.
i dont think it should be so hard for dojo.

Please Help

Dino
(PS - sorry for opening similar other threads but i though i will just use one where i will clarify all my needs and if somebody answers- maybe the tree owner "bill" himself - it would become a one stop shop for all those who need such functionality - maybe dojo guys can create a tree specificly lazy loading too)

any answers plz

any answers

I am also interested to know

I am also interested to know how to load a branch of tree.
Why the lazyload example in dojox doesn't fit my need? It is because when you have a big branch with a lot of nodes, you need to call the server for every node.
What I am trying to do is to create a getChildren() function where the server return the full branch of the tree with all children, but currently I failed to implement that.
Until now I can load a part of the tree, but if I try to use _getItemsFromLoadedData(dataObject) to parse and add the content of the returned string, the new nodes are not displayed ...

Does this help?