Skip to Content
0
Sep 04, 2015 at 05:16 AM

Tree - select a node by id programatically

28 Views

Hi,

I use a sap.ui.commons.Tree in my application, now I want to select / mark a certain node. The problem is that I doesn't have the node just the node's id? Is there a better way than iterating throught the whole tree and checking hard which id matches? There's a function tree.getNodeByContext, but I have no idea how to use it?

regards

Meex