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.
Up arrow icon