# Keep only the current node open in tree component

**URL:** <https://forums.realmacsoftware.com/t/keep-only-the-current-node-open-in-tree-component/53440>\
**Category:** Elements\
**Created:** [January 1, 2026, 9:58am UTC](https://forums.realmacsoftware.com/t/keep-only-the-current-node-open-in-tree-component/53440 "2026-01-01T09:58:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IdahoSAM](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/idahosam/32/15242_2.png) [@IdahoSAM](https://forums.realmacsoftware.com/u/IdahoSAM)\
**Post date:** [January 1, 2026, 9:58am UTC](https://forums.realmacsoftware.com/t/keep-only-the-current-node-open-in-tree-component/53440/1 "2026-01-01T09:58:46Z")

</div>

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.
