Unplanned
Last Updated: 24 May 2022 18:08 by ADMIN
Roland
Created on: 23 Sep 2021 11:45
Category: Editor
Type: Feature Request
3
Allow modifying the Undo/Redo Stack

I bind the TelerikEditor Value to a property that is reloaded with different unrelated content. The editor keeps the Undo/Redo stack so for the "second" content I can Undo back to the "first" content. I'd like to be able to clear the Undo stack.

4 comments
ADMIN
Marin Bratanov
Posted on: 24 May 2022 18:08

Hi Greg,

Please open a separate thread or ticket about this - I am not aware of such an issue and it is best if it gets its dedicated place and not interfere with the core of the current thread.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Greg
Posted on: 22 May 2022 16:52

Hello Marin.

It appears that there is a bug in the Editor, as when I attempt to do what you suggested (reload the business object and hence the bound property value) the Editor does not reflect the reloaded property value - it still shows the most recent edits.

I think there is a problem in the control not updating its internal Value property when the bound parameter is changed.

In order to force the control to refresh I have to remove it from the DOM and then add it back.

ADMIN
Marin Bratanov
Posted on: 22 May 2022 12:58

Hello Greg,

This feature request is to control the list of operations available in the undo-redo button commands (which you can clear off  by hiding the editor, re-rendering, and showing it again, as that will make a fresh instance).

If you want to undo all the changes, you should change the Value to the original your app can still have (either a stored copy in-memory in the app, or from the database). Nevertheless, even for that, there is some value in being able to clear the list without re-initializing the component, and if you feel that way, Vote for this too. Resetting the content programmatically, however, is not a feature from the editor, but from the app.

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Greg
Posted on: 20 May 2022 17:25
I agree that this would be very useful - the ability to undo all changes at once made to the editor.