Is it possible to prevent RadTreeView entering edit mode when you click on a selected node? We would still like nodes to be editable but only when the user presses F2 or when we programmatically enter edit mode.
Thanks,
Hayley
1 Answer, 1 is accepted
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 22 Aug 2022, 01:02 PM
Hello, Hayley,
RadTreeView offers the Editing event which allows you to control whether the edit operation is allowed or not. You can cancel this event in order to prevent entering edit mode. Feel free to use the BeginEdit() method to initiate editing on the selected node. Additional information about the editing lifecycle is available in the following help article: https://docs.telerik.com/devtools/winforms/controls/treeview/editing/editing-nodes
I have prepared a sample code snippet for your reference demonstrating how to start editing after pressing F2 or programmatically:
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.