Skip to Content
0

Node selection in sap.m.tree

Mar 17, 2017 at 08:12 PM

470

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Srikanth KV Mar 17, 2017 at 09:53 PM
0

sap.m.Tree also has these events.

In documnetation these will be part of sap.m.ListBase as sap.m.Tree is subclass of ListBase


tree.jpg (86.8 kB)
Share
10 |10000 characters needed characters left characters exceeded
SAP Seeker Nov 03, 2017 at 07:20 PM
0

Events associated with sap.m.tree are not working. We have 1.44.x version of UI5 library.

Since sap.ui.commons library is also depreciated, only choice for tree is sap.m.tree

Anybody facing similar issue and found a way to solve it ?

Thanks.

Share
10 |10000 characters needed characters left characters exceeded