Drag Drop from treeview...

2 posts, 0 answers
  1. patrick
    patrick avatar
    2 posts
    Member since:
    Aug 2010

    Posted 29 Dec 2010 Link to this post

    Hello,

    My question is:
    When i drag an item from a TreeView to an ListBox (from example):
     -> how not to delete this dragged item from this TreeView-source ?

    Thank's for your reply
    Patrick
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 29 Dec 2010 Link to this post

    Hello patrick,

    You can handle the PreviewDragEnded event (set e.Handled  = true for its event args) so that the RadTreeView control won't modify its collections:
    private void radTreeView_PreviewDragEnded(object sender, RadTreeViewDragEndedEventArgs e)
            {
                e.Handled = true;
            }

    Give it a try and let us know if it works for you or if you need more info.
     
    All the best,
    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top