Above code shows checkbox on both parent and child node in treeview. However, I want to show checkbox only on child nodes. I have added IsVisible binding as shown in above code but it doesn't control the visibility of checkboxes. How visibility of checkboxes can be controlled through binding?
SRSangeetha Raju Syncfusion Team August 27, 2019 08:15 PM
We would like to inform you that you can achieve your requirement by implementing the different templates using TemplateSelector. We have already updated in our documentation. Please find the documentation for further information.
Can you please check with the above sample and let us know whether the provided solution meets your requirement.
KRKrunalAugust 29, 2019 01:29 AM
Thanks for response with example.
I managed to set my treeview node view by following the example given by you. One issue I'm facing with it is IsChecked binding for the checkbox is not working (Template2.xaml) code. I also want to bind the checkbox with property in my viewmodel but upon check/uncheck, property value associated with binding is not updating. Can you pls check and revert back.
KRKrunalAugust 29, 2019 02:23 AM
I figured out the issue. ItemTemplateContextType was set to "Node" in my code. I changed it to "Item" and now checkbox binding works.
SPSubburaj Pandian Veluchamy Syncfusion Team August 30, 2019 02:32 AM
Thank you for the update. We are happy that the mentioned issue resolved at your end.
Please get in touch with us, if you would require any further assistance.