To save space when any
sub-level element is selected, I would like to collapse all other elements on
the same level. Is there an easy way to do so? Example: If I select
“Marketing”, the elements “Credit” and “Small
Business” should disappear.
You can define custom function
and attach it to onOpen event. In such case you can close all child items from
that handler each time when user will try to open item.