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

Question about getting mouse events

2 Answers 56 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
C Bates
Top achievements
Rank 1
C Bates asked on 05 Oct 2009, 02:58 PM
Hello,
We have a RadTabControl that contains a Canvas with objects (such as rectangles) on the Canvas.
We register the page containing the TabControl as the drag and drop handler; for example:
            RadDragAndDropManager.AddDragQueryHandler(this, OnDragQuery);
We register the objects on the Canvas as dragable and dropable:
            RadDragAndDropManager.SetAllowDrag(Rect, true);
We would like to allow the user to pan the view by grabbing and dragging the Canvas.  Can we get the LButton and MouseMove events on the Canvas?  (We've registered the appropriate event handlers, but the events don't reach the Canvas; they don't seem to get through the RadDragAndDropManager handlers already registered.)  Similarly, we'd like to use the MouseWheel events, but we can't get those,either.
Thanks for any tips...

RadControls 2009.2.812.1030
Silverlight 3
VS 2008


2 Answers, 1 is accepted

Sort by
0
C Bates
Top achievements
Rank 1
answered on 07 Oct 2009, 04:41 PM
We have figured out how to grab and move our canvas w/i the RadDragAndDropManager routines.

Is there a way to set the mouse cursor to a simple 'Cursors.Hand' at the beginning of the drag operation, and restore the 'Cursors.Arrow' at the end of the operation?

Thanks.

0
Valentin.Stoychev
Telerik team
answered on 08 Oct 2009, 05:57 PM
Hello C Bates,

This is not supported out of the box. It is hard to define when are the start and end of a drag and drop operation.

Regards,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
DragAndDrop
Asked by
C Bates
Top achievements
Rank 1
Answers by
C Bates
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Share this question
or