I press the button and try to collapseAll expanded tree nodes, it does not work, and there is an error "Control does not have a binding". Does anyone have a good solution about it ? I would really appreciate your help.
<Button
id="collapseAll"
text="collapse all nodes"
press="onCollapseAllPress"
/>
<Tree
items="{
path: 'supportKB>/categoryFacetValues/facetValues',
parameters: {
arrayNames: ['childrens']
},
templateShareable: true
}"
mode="None"
includeItemInSelection="true"
busy="{supportKB>/categoryFacetValues/isLoading}"
busyIndicatorDelay="0"
id="tree_hierarchicalFacet"
>
<customData>
<core:CustomData
key="facetValue"
value="{supportKB>value}"
/>
</customData>
<items>
<CustomTreeItem>
<content>
<FlexBox
alignItems="Inherit"
justifyContent="SpaceBetween"
width="100%"
>
<CheckBox
select="handleFacetItemSelected"
text="{supportKB>value}"
selected="{supportKB>selected}"
partiallySelected="{supportKB>partiallySelected}"
/>
<Text text="{supportKB>count}"/>
</FlexBox>
</content>
</CustomTreeItem>
</items>
</Tree>
onCollapseAllPress: function () {
this.getView().byId('tree_hierarchicalFacet').collapseAll();
}