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
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
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
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
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
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.
Point mousePoint = e.Options.RelativeDragPoint; I was able to use this property to find the dragged node's parent node.