Hello,
For example I have to parend objects, and both parent objects have a child.
|-parent1
| |-child1.1
| |-child1.2
|-parent2
| |-child2.1
with which function i can collapse a treepart.
my target is follow.
I have this situation
1.
|-parent1
| |-child1.1
| |-child1.2
|-parent2
2. th user click on parent2
and the tree show follow,
|-parent1
|-parent2
| |-child2.1
The treeNodeType has two attributes, hasChildren and expanded. You need to change the expanded attribute of parent1 whenever parent2 is clicked.
This tutorial might be helpful
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/constructing a recursive and loadable web dynpro tree.pdf
Add a comment