Skip to Content
0
Mar 17, 2017 at 08:12 PM

Node selection in sap.m.tree

985 Views

I have to exchanged an

oTree = new sap.ui.commons.Tree("tree");

with

oTree = new sap.m.Tree("tree").

It works problem is that the sap.ui.commons Tree has the events:

select(oControlEvent)Event is fired when a tree node is selected. selectionChange(oControlEvent)fired when the selection of the tree has been changed

which sap.m.tree is lacking. Is it possible to select a node in in Sap.m.tree like

in the common variant? If so how can one implement that event? If no is there another
tree control instead of m.tree that should be used?

Regards.

Dirk