autoselect node after expanding it

Hi guys,
Is it possible to make node selected after clicking an arrow on the left side of it?
Like on an picture attached I’m clicking an arrow and want to have Earth node selected straight away

14003.png

Hi,

you can add an ExpandListener to your Tree. There you can check if the newly expanded node has any children, and if it does you can set the selection to the first child node. Might be also a good idea to clear the selection in a CollapseListener.

-tepi

that’s what I wanted! Thank you :slight_smile: