This is a migrated thread and some comments may be shown as answers.

Customize undo/redo functionality

1 Answer 176 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Kristoffer
Top achievements
Rank 1
Kristoffer asked on 30 Aug 2013, 03:06 PM
The default implementation of the UndoRedoService is way too picky. Every possible UI transition adds an entry to the undo buffer. We don't want the user to be able to undo certain operations. E.g. when you click on a node, its ZIndex changes - implying a "Undo Set ZIndex" in the undo buffer. There are certainly more of these unnecessary undoables.

How can we customize this undo/redo behavior?

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 04 Sep 2013, 08:35 AM
Hello Kristoffer,

I am happy to inform you that the RadDiagram framework provides straightforward way of customizing this behavior.

Basically, you need to define a custom class which implements the IUndoRedoService interface and use the ServiceLocator to register your class with the RadDiagram. You can find more information here.

Please try to replace the default UndoRedoService with your custom one and let us know if you need any further assistance.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Diagram
Asked by
Kristoffer
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or