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.
<kendo-grid [data]="data" kendoGridUndoRedo></kendo-grid>
Selector
[kendoGridUndoRedo]
Export Name
Accessible in templates as #kendoUndoRedoInstance="kendoGridUndoRedo"
Inputs
Name | Type | Default | Description |
---|---|---|---|
itemIdKey |
|
Defines the property name of the data item unique key that will be used to identify the items when performing undo-redo actions. | |
maxStoredStates |
|
|
Sets the maximum number of actions to keep in the undo-redo stack. |
Fields
Name | Type | Default | Description |
---|---|---|---|
undoRedoItems |
|
Returns all undo-redo actions currently in the stack. |
Events
Name | Type | Description |
---|---|---|
redo |
|
Fires when you perform the redo action. Provides the Grid state to apply. |
undo |
|
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 |
---|
Reverts the last user action that you performed. |