This content has been marked as final.
Show 4 replies
-
1. Re: tree manual selection from model
ilya_shaikovsky Feb 4, 2009 6:16 AM (in response to timbooo)check adviceNodeSelected attribute usage. adviceNodeOpened which has the same usage for collapse/expand - show at demo. So you could use first in the same way.
-
2. Re: tree manual selection from model
timbooo Feb 4, 2009 7:37 AM (in response to timbooo)"ilya_shaikovsky" wrote:
check adviceNodeSelected attribute usage. adviceNodeOpened which has the same usage for collapse/expand - show at demo. So you could use first in the same way.
i don't get it. seems to me, i can just select the currentNode.
but in my case, i remove a child from the tree and then want to select another node. or i'm adding a child, rerendering the tree and i want to select the new node then.
kind regards,
tim. -
3. Re: tree manual selection from model
ilya_shaikovsky Feb 4, 2009 8:34 AM (in response to timbooo)the advisor now is the only way to set the selected node. I think it will works for your case also. Just store the node you want to select after some actions and in adviceNodeSelected method check if this node is the node you stored - return true.
-
4. Re: tree manual selection from model
timbooo Feb 4, 2009 9:06 AM (in response to timbooo)well ok, i've got it to select my new added node.
but then the selectionListener from my tree won't get fired.
is there a way to fix this?
kind regards,
tim.