We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Changing the Link Connection

Thread ID:

Created:

Updated:

Platform:

Replies:

62325 Jun 13,2007 06:43 AM UTC Jun 13,2007 12:47 PM UTC Windows Forms 1
loading
Tags: Diagram
Faheem Rauf
Asked On June 13, 2007 06:43 AM UTC

Hi, I have three Symbols two of them are connected with each other. Is there any way to stop the user to change the connection? I mean to say when the user tries to change the connection of the link there a message box should be appear or user should not be allowed to do so. I know the solution of

Link.EditStyle.AllowSelect = true;

Please give me any other solution. I will be thabkful to u.
regards

Meera Fathima [Syncfusion]
Replied On June 13, 2007 12:47 PM UTC


Hello Faheem,

If you are using v4.4 of Essential Diagram, you can restrict the connection from being moved by calling the Diagram.Model.ConnectionChanging event and cancelling the action. Below is the sample code snippet that shows the above informations.

this.diagram1.Model.ConnectionsChanging += new ConnectionCollectionEventHandler(Model_ConnectionsChanging);

void Model_ConnectionsChanging(object sender, ConnectionCollectionEventArgs evtArgs)
{
if (evtArgs.ChangeType == CollectionExChangeType.Remove)
{
MessageBox.Show(" Connection has been changed");
evtArgs.Cancel = true;
}
}


Or if you are using v5.1 of Essential Diagram, there is a known issue with moving the endpoint of the connection. Please post a new DT incident to get the details about the issue status.

Thanks for using Essential Diagram.

Best Regards,
Meera.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;