Canceling drag event

2 posts, 0 answers
  1. Martin
    Martin avatar
    39 posts
    Member since:
    Jan 2007

    Posted 09 Oct 2008 Link to this post


    I am using the tree's drag and drop. However, the 'drop' can occur on top of an ActiveX control. The tree view does not fire an onNodeDropping event. Instead, I capture the activeX mouseUp event and handle the drop functionality. However, because the tree control is not aware of the drop event, the tree still thinks it's dragging. This means it still shows the text of the draggging object from the tree when I do not want it to.

    Is there a way within my function to cancel the drag/drop operation. I imagine I need to somehow get to the tree control and call a cancel drag/drop function.

    Maybe code looking similar to this:-
    function myMouseUp()  
    function cancelTelerikDragDrop()  
        var tree = $find("<%= RadTreeView1.ClientID %>");  
        tree.CancelDragDropOperation(); ????????  

  2. Dimitar Milushev
    Dimitar Milushev avatar
    555 posts

    Posted 09 Oct 2008 Link to this post

    Hi Martin,

    You can call a private method of TreeView - tree._clearDrag(); This will cancel the drag'n'drop operation as you expect it to.

    I hope this helps.

    Best wishes,
    Dimitar Milushev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top