Disable RadTreeView Drag Cue?

6 posts, 0 answers
  1. jnh999
    jnh999 avatar
    29 posts
    Member since:
    Apr 2010

    Posted 11 Nov 2010 Link to this post

    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?


  2. jnh999
    jnh999 avatar
    29 posts
    Member since:
    Apr 2010

    Posted 11 Nov 2010 Link to this post

    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?
  3. DevCraft banner
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 15 Nov 2010 Link to this post

    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>>
  5. jnh999
    jnh999 avatar
    29 posts
    Member since:
    Apr 2010

    Posted 20 Nov 2010 Link to this post

    Can you please show how to keep track the mouse pointer position during drop operation?
  6. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 24 Nov 2010 Link to this post

    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
  7. jnh999
    jnh999 avatar
    29 posts
    Member since:
    Apr 2010

    Posted 29 Nov 2010 Link to this post

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