This is a migrated thread and some comments may be shown as answers.

How to achieve Windows Explorer-like edit functionality on single-click

1 Answer 34 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Larkin
Top achievements
Rank 1
Larkin asked on 01 Aug 2012, 07:09 AM
How would I go about implementing behavior similar to Windows Explorer, where if I have a node selected, then I left-click again on the node it will enter Edit mode? I don't want this to interfere with drag/drop behaviors, so the implementation should presumably handle the PreviewMouseUp event, perhaps? 

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 01 Aug 2012, 03:51 PM
Hello Larkin,

 I guess the DoubleClicking events in the RadTreeView do not fit in your scenario. However, usually when a file in Windows is Selected, then after another click and mouse up the file enters an Edit Mode. So you can use the MouseLeftButtonUp event of the RadTreeViewItems and check whether the item is already selected.
By default this method is handled internally by RadTreeViewItem but you are able to use the AddHandler and its boolean parameter handledEvents set tot true.
Hope this gives you the right direction.

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TreeView
Asked by
Larkin
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or