Hello.
As the title says, I'm trying to set a node to edit mode as soon as it's created. The approach I'm using is through WPF binding and styling. Basically, my object has a property called "IsNodeInEditMode", and I have a RadTreeViewItem style that sets this property based on the object it's bound to:
<Style TargetType="{x:Type telerik:RadTreeViewItem}"> |
<Setter Property="IsExpanded" Value="{Binding IsNodeExpanded, Mode=TwoWay}" /> |
<Setter Property="IsInEditMode" Value="{Binding IsNodeInEditMode, Mode=TwoWay}" /> |
</Style> |
So, as soon as I insert the item, I also set its "IsNodeInEditMode" property to true, which effectively makes the tree item go to edit mode, however, when I change the name of the newly created item, and press enter, it changes back to the original name, and not what I set after creating it, you can see that in this video:
Can you think of something that might be resetting the name? I debbuged this, and checked the call stack on the Name property Set accessor, but I can't get to the code that makes this change since it's external.
Let me know. Thanks!