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

Disable edit when using MVVM binding


I'm trying to disable the editing of nodes in the TreeViewAdv, without success. There is no property on the TreeViewAdv or TreeViewAdv ItemTemplates to disable editing. All the examples show that you can disable editing by setting the property of the TreeViewItemAdv, but since I use MVVM, there is no way for me to do that.

Is there any way to disable this property?

1 Reply

MS Mariappan S Syncfusion Team May 19, 2015 05:21 AM UTC

Hi Gaetan,

Thank you for contacting Syncfusion support.

In our TreeViewAdv control we have provided "IsEditable" property for TreeViewItemAdv. While using MVVM pattern on TreeViewAdv we can define this property using ItemContainerStyle. We have disable the edit option for all TreeViewItemAdv in below code by using ItemContainerStyle.

Code snippets:


<Style TargetType="{x:Type syncfusion:TreeViewItemAdv}">

<Setter Property="IsEditable" Value="False"/>



We have prepared a sample by using above code snippets. Please download the sample from the below link.

Sample link: TreeViewSample.zip

Please let us know if you need further assistance.

Mariappan S.

Live Chat Icon For mobile
Up arrow icon