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

Drag Drop Routing Strategy

1 Answer 101 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Rajesh
Top achievements
Rank 1
Rajesh asked on 22 Feb 2010, 06:55 AM
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.

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 23 Feb 2010, 08:10 PM
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.
Tags
DragAndDrop
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or