Skip to Content

Node selection in sap.m.tree

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 17, 2017 at 09:53 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 03, 2017 at 07:20 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 11 at 12:22 PM

    please provide solution

    Add comment
    10|10000 characters needed characters exceeded