Skip to content

Commit ed9350c

Browse files
Update razor
1 parent c79379c commit ed9350c

File tree

1 file changed

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

1 file changed

+9
-6
lines changed

ej2-asp-core-mvc/code-snippet/gantt/undo-redo/clear/razor

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33

44
@Html.EJS().Button("ClearRedoCollection").Content("Clear Redo Collection").CssClass("e-primary").Render()
55

6-
@Html.EJS().Gantt("Gantt").DataSource((IEnumerable<object>)ViewBag.DataSource).Height("450px").
7-
Toolbar(new List<string>(){ "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit",
8-
"Indent","Outdent","PrevTimeSpan", "NextTimeSpan","Undo","Redo"}).EnableUndoRedo(true).
9-
UndoRedoActions(new List<string>() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", "Edit",
6+
@Html.EJS().Gantt("Gantt").DataSource((IEnumerable<object>)ViewBag.DataSource).
7+
Height("450px").
8+
Toolbar(new List<string>(){ "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit",
9+
"Indent","Outdent","PrevTimeSpan", "NextTimeSpan","Undo","Redo"}).
10+
EnableUndoRedo(true).
11+
UndoRedoActions(new List<string>() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", "Edit",
1012
"Filtering", "Indent", "Outdent", "NextTimeSpan", "PreviousTimeSpan", "RowDragAndDrop", "Search", "ZoomIn", "ZoomOut", "ZoomToFit" }).
11-
TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")
12-
).EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true).ShowColumnMenu(true)).Render()
13+
TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")).
14+
EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true)).
15+
ShowColumnMenu(true).Render()
1316

1417
<script>
1518
document.getElementById('ClearUndoCollection').addEventListener('click', function (args) {

0 commit comments

Comments
 (0)