Carina
17 Jan 2007, 6:24 AM
hi,
I have a question concerning the new TreePanel. I want to build a really large tree (>1000 child nodes for one node, overall maybe 100k nodes). Based on the two-tree.js example, I've tested a tree with 1000 nodes in the root of the tree and (of course) it takes some time to load the tree (>10 seconds).
That's why I'm wondering if I could implement some form of "paging" within the nodes. What I mean is: the tree has only a certain height anyway, e.g. 500px which gives me enough space to see e.g. 50 nodes at once. So maybe I could load only the first 100 nodes on startup and when I scroll down, load the missing nodes dynamically, depending on how far I've scrolled down.
--> Would it be very hard to implement something like that? Could you maybe give me some hints where/how this could be accomplished and which existing components might be useful?
thx a lot!
P.S.: yui-ext is just so damn cool. I love the way it's organized and all the little "things that would be nice to have" and that are really there. As soon as I use it in a real project, I will be donating for sure. Jack, you're really doing a great job (that will hopefully save me a lot of time & troubles ;-) ).
I have a question concerning the new TreePanel. I want to build a really large tree (>1000 child nodes for one node, overall maybe 100k nodes). Based on the two-tree.js example, I've tested a tree with 1000 nodes in the root of the tree and (of course) it takes some time to load the tree (>10 seconds).
That's why I'm wondering if I could implement some form of "paging" within the nodes. What I mean is: the tree has only a certain height anyway, e.g. 500px which gives me enough space to see e.g. 50 nodes at once. So maybe I could load only the first 100 nodes on startup and when I scroll down, load the missing nodes dynamically, depending on how far I've scrolled down.
--> Would it be very hard to implement something like that? Could you maybe give me some hints where/how this could be accomplished and which existing components might be useful?
thx a lot!
P.S.: yui-ext is just so damn cool. I love the way it's organized and all the little "things that would be nice to have" and that are really there. As soon as I use it in a real project, I will be donating for sure. Jack, you're really doing a great job (that will hopefully save me a lot of time & troubles ;-) ).