|
So first you need to write code that finds
the node. This is just some sort of algorithm, whatever makes sense for you if
the data is sorted in some way or just a straight search otherwise. Once you’ve
found the node you can consider that a leaf right? OK, keep a reference to
that node. Now walk up the parents of that node and call setIsOpen(parent,
true, false) on the tree till you reach the top. That last false is to make it
not animate which should mean things will take effect quickly. Now call
getDisplayIndex on the tree, passing in your selectedNode. Set the Tree’s
vPosition to that (or some value near it) and you should bring it into
visibility. It’s possible that you will need to
throw in some doLaters to make sure that the Tree has drawn before you try to
get the display index. Hope this can get you started, Matt From: I am having a tough time doing something I'm sure is simple with
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] selectedNode Matt Chotin
- [flexcoders] Re: selectedNode Nikmd23

