I have a SAPUI5 TreeTable used for filtering on category. What I want is that when a parent category is selected, all the children should be selected and when the parent is deselected it's children should be deselected, no matter if they are collapsed or not. The problem is that I cannot use indices because apparently they differ based on collapsed items.
<t:TreeTable
id="treeCategoriesFilterItem"
rows="{path:'tree_categories>/', parameters: {arrayNames:['categories']}}"
selectionMode="MultiTogle"
enableSelectAll="false"
ariaLabelledBy="title"
visibleRowCountMode="Fixed"
rowSelectionChange="onCategoriesRowSelectionChange"
>
<t:columns>
<t:Column width="100%">
<Label text="{i18n>label.ticket.category}"/>
<t:template>
<Text text="{tree_categories>name}"/>
</t:template>
</t:Column>
</t:columns>
</t:TreeTable>