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

Drag the Shape & Create connection between Shapes

1 Answer 93 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shrikant
Top achievements
Rank 1
Shrikant asked on 17 Apr 2012, 02:18 PM
Hi,
I am looking for one customization with Diagram,

If User drag the Shape on any existing shape of Diagram then Dragged shape should connect with existing Shape.

So the Dragged Shape will become Destination & existing shape will bcme Origin.

Will this be possible to do with Telerik Diagram Control?

1 Answer, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 19 Apr 2012, 08:57 AM
Hi,

 You can achieve this by handling the Drag event and check what items have been dragged and their new positions. Then, you can check if the dragged shape (if one) is over another shape (intersection of the bounds) and add a connection between the two shapes.

All the best,
Alex Fidanov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Diagram
Asked by
Shrikant
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Share this question
or