I am using SfTreeView control in BoundMode with MVVM in recursive checkbox mode . In my ViewModel I need to update the no of checked items based on the my requirement i.e. how many items are supported for the selected user. Syncfusion version used is 220.127.116.11
In viewmodel, I'm updating the
checkedItems observable collection to which items to checked for the selected user and raising propertychanged on respective binding property.
The TreeView renders those Nodes as checked which working perfectly on UI behavior, however its parent node checkbox state does not change and remains as unchecked.
I do understand that "In recursive mode, the parent nodes checkbox state or IsChecked property value is updated only in UI interaction.".
As per requirement, I have to update
dynamically i.e. through programmatically and parent state also should reflect. Please let me know if this issue is fixed latest versions of syncfusion. If not please do suggest me any workaround to meet this requirement.
VSVijayarasan Sivanandham Syncfusion Team December 1, 2022 03:21 PM UTC
Hi Akshaya K,
As you said in the previous update, the reported problem is not an issue. This
is the expected behavior in SfTreeView. We have mentioned this limitation in
our user documentation. Refer to the below user guide documentation link:
We have checked the feasibility of achieving your requirement. We regret to let
you know that there is no other way to reflect the parent node checkboxes state
when programmatically updating the CheckedItems collection in SfTreeView.