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

2 posts, 0 answers
  1. Larkin
    Larkin avatar
    11 posts
    Member since:
    Nov 2011

    Posted 01 Aug 2012 Link to this post

    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? 
  2. Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 01 Aug 2012 Link to this post

    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.

    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top