Question about getting mouse events

3 posts, 0 answers
  1. C Bates
    C Bates avatar
    33 posts
    Member since:
    Oct 2009

    Posted 05 Oct 2009 Link to this post

    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. C Bates
    C Bates avatar
    33 posts
    Member since:
    Oct 2009

    Posted 07 Oct 2009 Link to this post

    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?


  3. DevCraft R3 2016 release webinar banner
  4. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 08 Oct 2009 Link to this post

    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.

    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.
Back to Top