We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

CheckedItems observable collection updating programmatically, does not reflect Parent node CheckBoxes state.. remains in unchecked State


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

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 checked items 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. 



1 Reply

VS Vijayarasan 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:

UG Link: https://help.syncfusion.com/wpf/treeview/checkbox#checkbox-state

Screenshot for your reference

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.

Vijayarasan S

Live Chat Icon For mobile
Up arrow icon