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.

How to cancel the OnClientNodeCollectionChange event

Thread ID:

Created:

Updated:

Platform:

Replies:

119531 Jul 4,2015 11:50 AM Jul 6,2015 09:35 AM ASP.NET Web Forms 2
loading
Tags: Diagram
Jim Jacobs
Asked On July 4, 2015 11:50 AM

Hi,

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

https://www.syncfusion.com/forums/79232/delete-node-with-confirmation

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?

Thanks

Jim

Jim Jacobs
Replied On July 5, 2015 10:44 AM

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.

Thanks

Jim

Shyam G [Syncfusion]
Replied On July 6, 2015 09:35 AM

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.

Regards,
Shyam G

CONFIRMATION

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.

;