[Dojo-interest] dojo tree question

Jean-Rubin Leonard jrleonard at gmail.com
Fri Jul 17 18:25:32 EDT 2009


Hi all,
good news, the lazy loading of my tree works!! I have two questions
about the general behavior of the tree.
1) I have an unordered list that I'm using as dndsource. When I drag
it on a tree node, it adds it to the tree but the label is undefined.
Admittedly, I haven't written any of the functions that I must
override for the tree but I wanted to verify before: Is this normal? I
was hoping that the tree would automatically get the label of whatever
we added to it.

2) There is some strange behavior that I suspect is coming from the
store I am using but I need to confirm this. I am using a forest store
and when I insert something and it falls between two root items, I get
a line. When I drop the DNDd item it just disappears however. I am
wondering is this because I haven't implemented anything tellling my
tree how to handle anything that is dropped on the root? Or is this
because a ForestStore does not really have a root that it's behaving
like that?

Whenever i drag items under other nodes its fine. It's really just at
the root that I have this problem.

Thanks for any input.
JR


More information about the Dojo-interest mailing list