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

How to prevent moving connection / link / line

1 Answer 60 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 04 Mar 2016, 11:22 AM

Hi!

 

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.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 07 Mar 2016, 12:08 PM
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.

Regards,
Martin
Telerik
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
Tags
Diagram
Asked by
Daniel
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or