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.

Delete node event

Thread ID:





92624 Jan 27,2010 05:00 AM Feb 1,2010 06:27 AM ASP.NET Web Forms (Classic) 1
Tags: DiagramWebControl
Javi Garrido
Asked On January 27, 2010 05:00 AM


I need to know if a user delete something in the diagram.

Are there any event to know where the user delete a node?
Or user uses supr key?

Thank you.

Dinesh M [Syncfusion]
Replied On February 1, 2010 06:27 AM

Hi Javi,

You can detect nodes being delted/inserted to the Model by means of the NodeCollectionChanged event.

AddHandler Diagram1.Model.EventSink.NodeCollectionChanged, AddressOf EventSink_NodeCollectionChanged

Private Sub EventSink_NodeCollectionChanged(ByVal evtArgs As CollectionExEventArgs)

End Sub

You can detect the supr(Delete) key from the diagram's keydown event if needed.

Please download the sample explaining it from the link below.




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.

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.