This content has been marked as final.
Show 2 replies
-
1. Re: RF 4.2 expand tree node on click
true_mykola Apr 12, 2012 9:35 AM (in response to true_mykola)I made it! I used some internal javascript in onbeforeselectionchange event of tree:
onbeforeselectionchange="if (arguments[2].newSelection[0].__canBeToggled()) { arguments[2].newSelection[0].toggle();return false;}"
Maybe it's a little bit dirty but it works
-
2. Re: RF 4.2 expand tree node on click
just-greg Sep 24, 2012 12:30 PM (in response to true_mykola)I realize this post is a few months old, but it's also the only one out there recently....and it's very dirty as he said...
So I thought I would post a cleaner approach to this.
Which would be this:
{code}onclick="#{rich:component('treeNodeId')}.expand();"{code}
{code}onclick="#{rich:component('treeNodeId')}.collapse();"{code}
I believe toggle would also be valid although I've never used it personally.