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

Change Drag Cue Template

1 Answer 73 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Ahmet
Top achievements
Rank 1
Ahmet asked on 17 Aug 2012, 04:03 PM
Hi,

I have been trying to implement drag and drop from a treeview to a gridview using DragDropManager. It looks like I got it to working, with a drag cue created from a datatemplate defined in treeview resources in DragInitialize event fired by the treeview. What I would like to do, is to change the dragcue when the mouse enters inside the borders of the gridview, and switch it back when it leaves the gridview borders.

I went through the BugTracker demo source, and this concept has been done by creating a template, and controlling the image path and other textblocks with a binding property. Is this the only way to accomplish this? Is it possible to define two different datatemplates and select the appropriate one in the DragEnter and DragLeave event of the gridview?

Can someone please clarify? A small sample code would help a lot.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 20 Aug 2012, 05:50 AM
Hi,

I would suggest you to check the implementation done for the TreeView (check how the DragVisual is set). 

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DragAndDrop
Asked by
Ahmet
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or