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. Image for the cookie policy date
close icon

Delete node event

Hello,

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.

1 Reply

DM Dinesh M Syncfusion Team February 1, 2010 11:27 AM UTC

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.

http://help.syncfusion.com/support/Diagram.Windows/Incidents/NodeDelete/Diagram_WF_Delete.zip

Regards,
Dinesh

Loader.
Live Chat Icon For mobile
Up arrow icon