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

Action grouping for undo.

Thread ID:





74767 Jun 27,2008 12:57 PM UTC Jul 2,2008 10:44 AM UTC WinForms 1
Tags: Diagram
Administrator [Syncfusion]
Asked On June 27, 2008 12:57 PM UTC

I need some assistance with undo action. The problem is that when user adds symbol on the diagram I automatically draw sometimes link between 2 symbols.
I'd like that when uses calls Undo, 2 commands become undone. Is it possible to unite some commands together?

PS. We still using Diagram

J.Nagarajan [Syncfusion]
Replied On July 2, 2008 10:44 AM UTC

Hi Olga ,

Thanks for your interest in Syncfusion products. The old version of the diagram control does not support to undo the insertion of nodes. As a work around you can cancel the ChildrenChanging event when it addes with the link. Please refer to the following code snippet.

this.diagram1.Model.ChildrenChanging += new NodeCollectionEventHandler(Model_ChildrenChanging);
void Model_ChildrenChanging(object sender, NodeCollectionEventArgs evtArgs)
if (evtArgs.Node is Link && evtArgs.ChangeType == CollectionExChangeType.Insert)
evtArgs.Cancel = true;


Our latest version of diagram can undo the insertion of the nodes. You can download our latest version from the following page.


Unlock key:

If your Essential Studio license is current, you will be able to obtain the key to install this version from your account in DirectTrac Otherwise, please contact your Syncfusion Sales Representative or e-mail salessupport@syncfusion.com

Please let me know if you have any questions.



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