Drag the Shape & Create connection between Shapes

2 posts, 0 answers
  1. Shrikant
    Shrikant avatar
    38 posts
    Member since:
    Jul 2011

    Posted 17 Apr 2012 Link to this post

    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?

  2. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 19 Apr 2012 Link to this post

    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 >>

  3. DevCraft banner
Back to Top