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

Drag Drop from treeview...

1 Answer 27 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
patrick
Top achievements
Rank 1
patrick asked on 29 Dec 2010, 04:17 PM
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

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 29 Dec 2010, 06:25 PM
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
Tags
TreeView
Asked by
patrick
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or