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

Invoke a connection manipulation from code

1 Answer 24 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 18 Oct 2013, 01:45 PM
Hi,

Is there any way we can begin a connection manipulation from code?

Specifics:

We want to have a context menu item on a RadDiagramShape, that when clicked gets the associated Connection, sets the connection's Source to null and effectively puts the connection into attaching / moving mode, so that the connection source end point effectively snaps to the mouse position and allows the user to reattch it to another RadDiagramShape / node.

We can easily get the relevant connection but how do we begin this user manipulation?

Gary.

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 23 Oct 2013, 09:57 AM
Hi Gary,

I understand your requirement. Unfortunately, the RadDiagramConnection does not support moving through code.

However, you are allowed to update its Source and Target properties. Is it possible for you to predefine those properties and update them on a button click - rather than freely moving the target point where the mouse is rendered.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Diagram
Asked by
Gary
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or