on 11-03-2017 8:59 PM
Hello,
Events associated with sap.m.tree are not working. We are using 1.44.11 UI5 library and when we tried to associate event for 'selectionChange', the event is not fired on expanding node or selecting node text or collapsing node. Also, sap.ui.commons library got depreciated, where the events were working. Few more people raised such questions in forums, but never got resolved.
If anybody have implemented events for sap.m.tree control, please share the logic/code used.
It will be of great help, if you can point some working code through frameworks like jsbin or jsfiddle.
Should we go for extending the control with custom event handling ? Or use commons library control, which got depreciated ?
Thanks.
I would say the issue is that you did not implement the property mode on the sap.m.Tree. Since sap.m.ListMode.Node is the default, your events will not be fired. You should implement as follows if you want the entire row to be selectable (note: SingleSelect puts a selectable radio button on the control).
<Tree id="testedControls" items="{ path: '/controls'}" mode="SingleSelectMaster" selectionChange=".onTreePress"> <StandardTreeItem title="{name}" press=".onTreePress" /> </Tree>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what events are you referring to? the sap.m.Tree control is still working (as per the url below)
https://openui5.hana.ondemand.com/#/entity/sap.m.Tree
some events did get deprecated but not all of them
https://openui5.hana.ondemand.com/#/api/sap.m.Tree
are you looking for one specifically?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.