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

Drag and drop inside the RadGridView

2 Answers 215 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 13 Jan 2011, 06:12 PM
I'm only looking for suggestions here, or any similar example should someone have one.

I have a RadGridView with a row template.  It has 14 columns.  The data template puts an image in one of the 14 columns.  The user needs to be able to click and drag this image to another column.  I'm assuming that I need to add drag events to the image in the datatemplate.  What would be needed for the grid?  

Again, this is a vague question, so I'm just looking for suggestions, or ideas on where to head with it.

2 Answers, 1 is accepted

Sort by
0
Accepted
Tsvyatko
Telerik team
answered on 14 Jan 2011, 10:15 AM
Hi Paul,

In order to achieve the desired behavior the following steps are required:

 - Add RadDragAndDropManager.AllowDrag/RadDragAndDropManager.AllowDrop to the Image within the data template

 - Add Drag/Drop Query/Info events to perform DragDrop operation.

- Use the ImageSource or URI for transfaring the information about the image being dragged (stored in e.Options.Payload).

If you unfamiliar with the RadDragAndDropManager infrastructure I can recommend check these articles:

http://www.telerik.com/help/wpf/raddraganddropmanager-overview.html
http://www.telerik.com/help/wpf/raddraganddropmanager-structure.html
http://www.telerik.com/help/wpf/raddraganddrop-events-overview.html
http://www.telerik.com/help/wpf/raddragdrop-events-eventargs.html

Let me know if you need any further questions.

Regards,
Tsvyatko
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Paul
Top achievements
Rank 1
answered on 14 Jan 2011, 02:42 PM
Thanks very much, that's exactly the advice I'm looking for.  I'll give it a shot!
Tags
GridView
Asked by
Paul
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Paul
Top achievements
Rank 1
Share this question
or