New to Kendo UI for AngularStart a free 30-day trial

UndoRedoDirective

Represents the directive that manages undo-redo operations in the Grid. Use this directive to enable undo and redo functionality for user actions in the Grid.

html
<kendo-grid [data]="data" kendoGridUndoRedo></kendo-grid>

Selector

[kendoGridUndoRedo]

Export Name

Accessible in templates as #kendoUndoRedoInstance="kendoGridUndoRedo"

Inputs

NameTypeDefaultDescription

itemIdKey

string

Defines the property name of the data item unique key that will be used to identify the items when performing undo-redo actions.

maxStoredStates

number

10

Sets the maximum number of actions to keep in the undo-redo stack.

Fields

NameTypeDefaultDescription

undoRedoItems

UndoRedoEvent[]

Returns all undo-redo actions currently in the stack.

Events

NameTypeDescription

redo

EventEmitter<UndoRedoEvent>

Fires when you perform the redo action. Provides the Grid state to apply.

undo

EventEmitter<UndoRedoEvent>

Fires when you perform the undo action. Provides the Grid state to apply.

Methods

redo

Re-applies the last action that you reverted with the undo method.

undo

Reverts the last user action that you performed.

In this article
SelectorExport NameInputsFieldsEventsMethods
Not finding the help you need?
Contact Support