I am facing issue like when selecting the parent node all the child node which are…
- User
I am facing issue like when selecting the parent node all the child node which are targeting to respective parent node has to be selected automatically. The control is in sapui5, sap.m.tree and the multiselection is on.
How it can possible ?
- Assistant
In SAPUI5, you can achieve this automatic selection of child nodes when selecting the parent node in a tree using the following steps:
-
Create a handler function for the "selectionChange" event of the parent node in the sap.m.Tree control. This event will be triggered when the parent node is selected or deselected.
-
Inside the handler function, check if the parent node is selected or deselected.
-