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

Example code

1 Answer 94 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Jonathan Miller
Top achievements
Rank 1
Jonathan Miller asked on 05 Dec 2008, 09:03 PM
Hello.  Can you provide sample XAML and .CS of drag and drop basics using a listview as the source and the radtreeview as the target?

The sample code in the demo references a parent "Example.DraggableListBox"

I am looking for assistance with non "Example.DraggableListBox" - regular usable controls and the events to handle them in code-behind.  Thank you

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 09 Dec 2008, 12:24 PM
Hello Jonathan,

The events that need to be handled are the same for all controls, just as the attached properties that need to be set.

I have created an example with RadDatagrid as a source and RadTreeView as a destination, available here (the example with a list will be very similar).

http://www.telerik.com/community/forums/silverlight/drag-and-drop/drop-to-a-datagridrow.aspx

Also there you can find a draft version of the help for Drag and Drop:

http://www.telerik.com/ClientsFiles/109360_RadDragDrop_Help_First_Draft.zip

A slightly more advanced example is drag & drop between TreeViews:

http://www.telerik.com/community/forums/silverlight/treeview/drag-drop-between-treeviews.aspx

Hopefully I will be able to create more examples soon. Come back to us if you need help or guidance for the examples or your particular scenario.

Kind regards,
Miroslav
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
DragAndDrop
Asked by
Jonathan Miller
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or