cancel
Showing results for 
Search instead for 
Did you mean: 

sap.ui.commons.Tree

Former Member
0 Kudos

Hi All,

In sap.ui.commons.Tree I want to scroll a node into view if it is not showing. This node is selected programmatically and has to be displayed.


have the reference to the TreeNode in question.


How can i achieve this? Any suggestions?


Thank you in advance for your time and help!!



Regards

Fehmina.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Set the node's property setIsSelected(true) and make sure the selection mode of the parent tree is set to legacy or single. I'm not sure if the select event will be triggered but it's easily done manually.

Greetz

Silvio