Skip to content

Commit 1e9e4bb

Browse files
Update razor
1 parent 4f148d4 commit 1e9e4bb

File tree

1 file changed

+10
-6
lines changed
  • ej2-asp-core-mvc/code-snippet/gantt/undo-redo/undoActions

1 file changed

+10
-6
lines changed
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
@Html.EJS().Gantt("Gantt").DataSource((IEnumerable<object>)ViewBag.DataSource).Height("450px").
2-
Toolbar(new List<string>(){ "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit",
3-
"Indent","Outdent","PrevTimeSpan", "NextTimeSpan","Undo","Redo"}).AllowRowDragAndDrop(true).
4-
UndoRedoActions(new List<string>() { "Delete", "Edit" }).EnableUndoRedo(true).
5-
TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")
6-
).EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true).ShowColumnMenu(true)).Render()
1+
@Html.EJS().Gantt("Gantt").DataSource((IEnumerable<object>)ViewBag.DataSource).
2+
Height("450px").
3+
Toolbar(new List<string>(){ "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit",
4+
"Indent","Outdent","PrevTimeSpan", "NextTimeSpan","Undo","Redo"}).
5+
AllowRowDragAndDrop(true).
6+
UndoRedoActions(new List<string>() { "Delete", "Edit" }).
7+
EnableUndoRedo(true).
8+
TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")).
9+
EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true)).
10+
ShowColumnMenu(true).Render()

0 commit comments

Comments
 (0)