Keep only the current node open in tree component

Is there a way to collapse all the other nodes in the tree component when I click on a current node? Currently all I see are a variety of open nodes. I have to manually close the nodes as all the open tree nodes contributes to a lot of screen space.

2 Likes