Skip to Content
0
Oct 08, 2020 at 08:57 AM

Select all childs of a parent in tree table

58 Views

Hello,

i have again a question to a tree table of ui5.

I use this COntrol: https://openui5.hana.ondemand.com/api/sap.ui.table.TreeTable. I get my data from odata. I know it is not so simpel to select the child if u select the parent. Maybe some one have a suitable solution.

For a example: https://openui5.hana.ondemand.com/entity/sap.ui.table.TreeTable/sample/sap.ui.table.sample.TreeTable.JSONTreeBinding. I want to select "Dresses" under Woman, than i want to be select all childs (Casual Red Dress, Short Black Dress and Long Blue Dinner Dress). If all childs select than i want to select the parent.

I hope some one can help me. I dont find any suitable and actually solution.