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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

UPgrad to

Thread ID:





98936 Apr 9,2011 01:30 AM UTC Apr 13,2011 12:41 PM UTC WinForms 1
Tags: Diagram
Christine Cipriani
Asked On April 9, 2011 01:30 AM UTC

We are currently upgrading from to I would like to determine when a link has been removed. More importantly, I need to get the nodes that were joined by the link. I was able to do this in using code that was very similar to the example in your online documentation: http://help.syncfusion.com/ug_83/User%20Interface/Windows%20Forms/Diagram/default.htm?turl=Documents%2Fhowtodetectwhetheranewlinkhasbeenaddedremovedfromadiagram.htm

Obviously this documentation has not been updated since it still references all of the old classes. Could you please provide information on how to access the nodes when a link is removed using the newer classes. Also, it would be most helpful if you could update the documentation as well.

Thanks in advance for your help


Pandi Murugan A [Syncfusion]
Replied On April 13, 2011 12:41 PM UTC

Hi Christine,

Thanks for using Syncfusion products and sorry for the inconvenience caused.

We suggest you to use EventSink's NodeCollectionChanged event to access the nodes when a link is removed. Please refer the below code snippet.

diagram1.EventSink.NodeCollectionChanged += new Syncfusion.Windows.Forms.Diagram.CollectionExEventHandler(EventSink_NodeCollectionChanged);

void EventSink_NodeCollectionChanged(Syncfusion.Windows.Forms.Diagram.CollectionExEventArgs evtArgs)
if (evtArgs.ChangeType == CollectionExChangeType.Clear)
if (evtArgs.Elements != null)
foreach(Node node in evtArgs.Elements)
if (node is ConnectorBase)
Node fromNode = ((ConnectorBase)node).FromNode as Node;
Node toNode = ((ConnectorBase)node).ToNode as Node;
MessageBox.Show("FromNode: "+fromNode.Name + " ToNode: " + toNode.Name);

We will update our online UG as soon as possible. Please let me know if you have any concerns.

Pandi Murugan A


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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