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

Lock the start point of a RadDiagramConnection from being edited

1 Answer 77 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 18 Aug 2017, 02:32 PM

I have a diagram control, I'm using GraphSource to bind to a list of my business objects. I then use protected override IConnection GetConnectionContainerForItemOverride(object item) to choose a connection based on the specific business object. In my case I'm either using RadDiagramConnection directly, or a custom implementation that inherits from RadDiagramConnection.

My goal is to disable the ability for my users to disconnect the start point of my connector in some situations  - thus the GetConnectionContainerForItemOverride override to select a custom implementation of RadDiagramConnection.

In my custom implementation of RadDiagramConnection constructor I've tried to listen to various events, I've tried to clear the connection points, and manipulation points, but no no affect. I cannot detect that the user is trying to move the start point, and then cancel, nor can I remove the point so the users cannot drag it around when the connection is selected in the diagram at run time.

Any thoughts on how I can disable the ability for my users to remove the start connection of my connection line on a diagram control?

Thanks for any thoughts you have about this!

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 23 Aug 2017, 07:22 AM
Hello Adam,

Please read the documentation of Connection Manipulation events. They are especially designed to plug into and control the manipulation process of connections. If they do not help, please post some code that we can advice more precisely.

Regards,
Petar Mladenov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Diagram
Asked by
Adam
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or