I would like to collapse all other nodes when a node is expanded. My toggle type is client, so I would like a pure client / javascript solution.
Shouldn't the following work?
<rich:treeNode expanded="true" onbeforetoggle="this.collapse();">
But I get a
this.collapse is not a function
error, although collapse() is defined in tree.js.
onbeforetoggle="$('.rf-trn').collapse();"
doesn't work neither.
Thanks