Example of Undo Redo in ASP.NET MVC Gantt Chart Control

This example showcases the undo-redo functionality within the Gantt Chart, offering users the flexibility to revert or reapply their latest actions on the Gantt Chart.

DEMO
SOURCE

Undo feature enables users to revert the most recent action performed in the Gantt Chart. It helps in undo the changes made to tasks, dependencies, or other elements within the Gantt Chart.

Redo feature can reapply an action that was previously undone using the Undo feature. This allows users to revert their decision to undo an action.

To undo a recent action, you can either press the Undo keyboard shortcut(Ctrl + Z) or click on the Undo toolbar option. To reapply an action that was undone, you can use the Redo keyboard shortcut(Ctrl + Y) or click on the Redo toolbar option.

You can specify the actions to be restored using UndoRedoActionsopens in a new tab property, such as Edit, Add, Delete, Sorting, ColumnReorder, ColumnResize, Search, Filtering, ZoomIn, ZoomOut, ZoomToFit, ColumnState, Indent, Outdent, RowDragAndDrop, TaskbarDragAndDrop, PreviousTimeSpan, NextTimeSpan.

Additionally, you can also define number of undo/redo actions that should be stored. This setting can be adjusted using the UndoRedoStepsCountopens in a new tab property. By default UndoRedoStepsCount value is 10.

In this demo, the Undo-Redo feature is enabled by setting EnableUndoRedoopens in a new tab to true.

Transform your ASP.NET MVC web apps today with Syncfusion® ASP.NET MVC components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab