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

How to cancel the OnClientNodeCollectionChange event

Thread ID:





119531 Jul 4,2015 03:50 PM UTC Jul 6,2015 01:35 PM UTC ASP.NET Web Forms 2
Tags: Diagram
Jim Jacobs
Asked On July 4, 2015 03:50 PM UTC


I have a requirement similar to this one from your Windows Diagram forum:


Depending on which node(s) are being deleted, I want to issue a prompt to the user confirming this action.
If they select Not to proceed, how do I cancel the remove operation?

Typically, you have the option to cancel the event - leaving everything just the way it was.

How do I accomplish this using the asp.net diagram control?



Jim Jacobs
Replied On July 5, 2015 02:44 PM UTC

Hi again,

I have also put in place a keydown event handler in which I am attempting to prevent the Delete key from actually firing.
My intent was to ignore the user hitting the Delete key, and require them to use the Trashcan toolbar icon.
Unfortunately, the OnClientNodeCollectionChange event fires before the keydown event, which I find strange.

I thought this additional information would be useful to you in forming your reply.



Shyam G [Syncfusion]
Replied On July 6, 2015 01:35 PM UTC

Hi Jim

Thanks for using Syncfusion products.

Please note that when we press the delete key by selecting the nodes/connector, the nodeCollectionChange event triggers and it is a default behavior of our control. However we have implemented the feature “commandmanager”  in which you can decide whether to delete the node/connector or not. Also you can perform your operation using commandmanager in the Application level. This feature will be available in our volume 2,release, which is scheduled to release in the second week of July, 2015.

Please let me know if any concerns.

Shyam G


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