Drag and Drop Handle

2 posts, 0 answers
  1. John Truong
    John Truong avatar
    5 posts
    Member since:
    Dec 2007

    Posted 21 Oct 2010 Link to this post

    Hey guys,

    Is it possible to modify a RadTreeView's drag and drop behavior to use a handle?

    Just like the RadGrid's GridDragDropColumn:

    - J
  2. Nikolay Tsenkov
    Nikolay Tsenkov avatar
    734 posts

    Posted 27 Oct 2010 Link to this post

    Hello John Truong,

    It is possible. It may require a bit more work to get it working in all situations, but it should be possible.

    In order to place a handle, you can template the nodes. Then you should mark the handle somehow, e.g. with a css class.
    Then on ClientNodeDragStart you will have to check the element on which the event occurred. For this purpose you can use the dom event in the arguments. If the click happened outside the element with the css class, you can cancel the dragging. Here is a reference to for this event: http://www.telerik.com/help/aspnet-ajax/tree_clientonclientnodedragstart.html

    I hope this is helpful for you!

    Nikolay Tsenkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top