Drag Drop Routing Strategy

2 posts, 0 answers
  1. Rajesh
    Rajesh avatar
    25 posts
    Member since:
    Dec 2007

    Posted 22 Feb 2010 Link to this post

    Hi

    In one of my application i am using mindfusion diagramming control and telerik drag-drop manager to implement drag-drop between different shapes. Mind fusion allows overriding methods like MouseDown ,mouseMove and mouseUp thro' its behaviour class.

    Whenever telerik drag-drop operation gets started visual clue is shown and later on the the default behaviour of mind fusion gets triggerd and results in two different type of operations parallely working ( Drag-drop visual clue and mindfusion own drag-drop).
    To avoid this, the custom behavior class is implemented for mind fusion with above said method overriden ( only mousedown and mouse up) is sufficient and mousedown method returns "false". This results in disabling the mind-fusion behavior.

    Now, the new requirement is that, I need to disable the telerik drag-drop behavior if mind fusion behavior gets started
    i.e  the routing strategy should trigger the mouse down event first in my custom behavior class and then route it to telertik drag-drop manager where I can check the some global variable (which is set in custom behaviour class mousedown event) to disable telerik drag-drop.

    How I can do this ?

    Regards
    Rajesh
     

    overriden method gets triggred.
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 23 Feb 2010 Link to this post

    Hello Rajesh,

    If I udnerstand your scenario correctly I can suggest two things:

    If the Telerik DragDrop has not started you can handle the DropQuery event at your application root visual (or on a parent of the diagram) there you can check your global variable and set the e.QueryResult to false to disable the Telerik DragDrop.

    Handling the DropQuery event at the application root is the last chance to cancel it.

    If you need to disable the DragDrop after it has started you can always call the RadDragAndDropManger.CancelDrag() method to immediately stop it.

    Do you think this will help you?

    Kind regards,
    Miroslav
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top