How to prevent moving connection / link / line

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    4 posts
    Member since:
    Aug 2015

    Posted 04 Mar 2016 Link to this post



    On my RadDiagram control I have generated elements with connections. How to prevent moving connection?

    I want to allow the user only to detach and attach the connection. Forbidden situation is visualised in forbiddenSituation.PNG.  If the user unpin the connection and he/she doesn't drag connection to another item, the connection shouldn't be changed. So all connections should have Target and Source element.


    I use ConnectionManipulationCompleted event. When ManipulationStatus is Moved I want to Undo this, but the truth is only the previous change will be undone, not current connection moving.


    I was thinking I can cache previous state of connection (target and source) on ConnectionManipulationStared and set those if on ConnectionManipulationCompleted target or source are null. But it doesn't work.

  2. Martin Ivanov
    Martin Ivanov avatar
    1442 posts

    Posted 07 Mar 2016 Link to this post

    Hi Daniel,

    I already answered your question in the duplicated post in the UI for WPF section of the forum. 

    As a side note, I would ask you to keep the communication on a specific topic in a single thread. This way it will be easier for the other users to find the required information easier and faster. Also, if posted in the section of the corresponding product which you are using it will be more likely for you to get more accurate and fast answer. Thank you for the understanding.

    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 Feedback Portal and vote to affect the priority of the items
Back to Top