How to Undo/Redo cell changes in Kendo Grid in-cell edit mode ?

1 Answer 123 Views
Grid TreeList
Ahamed
Top achievements
Rank 1
Ahamed asked on 27 Feb 2022, 06:51 AM

Need to perform Undo and Redo of cell changes in the kendo grid (using JQuery) in-cell edit mode. Please share the workaround and possible solution.

Please do the needful.

 

Thanks,

Irshad

1 Answer, 1 is accepted

Sort by
0
Georgi Denchev
Telerik team
answered on 02 Mar 2022, 03:38 PM

Hi, Irshad,

The Kendo Grid editor templates don't have any built-in functionality for undo/redo. You can use a custom Grid editor and define it as a Kendo Editor widget which has tools for undo/redo:

{field: "ProductName", width: 190, editor: editorTemplate},


        function editorTemplate(container, options) {
          $('<textarea required name="' + options.field + '"/>')
            .appendTo(container)
            .kendoEditor({
		tools: ["undo", "redo"]
          });
        }

Dojo example:

https://dojo.telerik.com/@gdenchev/OJocoWAM 

Preview:

Best Regards,
Georgi Denchev
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.

Tags
Grid TreeList
Asked by
Ahamed
Top achievements
Rank 1
Answers by
Georgi Denchev
Telerik team
Share this question
or