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

Disable RadTreeView Drag Cue?

5 Answers 88 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
jnh999
Top achievements
Rank 1
jnh999 asked on 11 Nov 2010, 05:47 PM

I need to drag a TreeViewItem from RadTreeView to an organization chart diagram (made with a diagramming component).  The DragCue in RadTreeView is preventing the mouse event from propagating to the diagramming component.  I need to be able to following the mouse movement to make a precise drop.  Is there a way to disable the drag cue from showing up?  What is the best way for me to pass the mouse event to the other component during a drag and drop operation?


5 Answers, 1 is accepted

Sort by
0
jnh999
Top achievements
Rank 1
answered on 11 Nov 2010, 08:22 PM
Actually, I just need to keep track of the mouse movement during drag and drop.  Is there a mous event that I can subscribe to?
0
Petar Mladenov
Telerik team
answered on 15 Nov 2010, 04:32 PM
Hi jnh999,

Controlling the DragCue ,making a precice drop and determining the Mouse X and Y position  can be properly handled by using  the RadDragDropManager events. For instance, you can use the DragInfo event.
Please check out this article and let us know if it helps you ==>(http://www.telerik.com/help/silverlight/raddraganddrop-events-overview.html). If it doesn`t  , could you please send us your project or a sample demonstrating this issue?


Greetings,
Petar Mladenov
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
0
jnh999
Top achievements
Rank 1
answered on 20 Nov 2010, 08:46 PM
Can you please show how to keep track the mouse pointer position during drop operation?
0
Petar Mladenov
Telerik team
answered on 24 Nov 2010, 05:40 PM
Hello jnh999,

I prepared a sample project for you illustrating how to keep track of the mouse movement (its position and targetted dropitem). You may also find how to disable or change the DragCue in the DropInfo event handler. Please examine it and let me know if it satisfies you.

Feel free to ask if you need further assistance.

Best wishes,
Petar Mladenov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
jnh999
Top achievements
Rank 1
answered on 29 Nov 2010, 05:12 PM
Thank you so much for your demo project.  It is very helpful.  The key for me is to find the mouse point with this:
Point mousePoint = e.Options.RelativeDragPoint;  I was able to use this property to find the dragged node's parent node.
Tags
DragAndDrop
Asked by
jnh999
Top achievements
Rank 1
Answers by
jnh999
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or