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

Do() and Undo() suite

Thread ID:





43038 Apr 12,2006 12:37 PM UTC Apr 20,2006 06:56 AM UTC WinForms 4
Tags: Diagram
Asked On April 12, 2006 12:37 PM UTC

Hi, I use both methods ''do()'' and ''undo()'' provided by Diagram Class. If I do() 6 commands on the diagram and after I undo() 3 commands, I can undo() more 3 commands. But now, if I decide to do() a new command, logically three last command will be destroyed. It''s not the case of the diagram. Please can you give me a way to fix it ? THX!

Administrator [Syncfusion]
Replied On April 13, 2006 01:26 PM UTC

Hi, Thanks for your interest in Syncfusion. I am looking into this issue and will provide you with an update within two days. Regards, Praveena.

Replied On April 19, 2006 01:24 PM UTC

Any news regarding this feature? thanks Jonathan Urban.

Administrator [Syncfusion]
Replied On April 20, 2006 06:38 AM UTC

Hi, My apologies for the delay in getting back to you. The feature you are requesting can be implemented by clearing the Undo/Redo stack instantly by calling the DiagramController.ClearHistory () method. The DiagramController.ClearHistory () method will be used to remove all the commands from the undo and redo stacks. If you want to clear any one of the stack and leave the remain unchanged, the way to accomplish this would be by customizing the DiagramController class , providing suitable code implementation for the UndoCommand()/RedoCommand() override methods and calling the undoStack.clear()/redoStack.clear() methods at the required place. The undoStack() contains/maintains all the Undo commands and the redoStack() contains/maintains all the Redo commands. Please let me know if you have any questions. Thank You, Praveena.

Administrator [Syncfusion]
Replied On April 20, 2006 06:56 AM UTC

Hi Jonathan Urban, Also DiagramController.undoStack/redoStack are the stack objects that will let you get hold of the commands that can have Undo/Redo applied. I forgot to mention this in the previous update. I am sorry about this. Thank You, Praveena.


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

or the page will be automatically redirected to 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