Skip to content

Commit c7c2c90

Browse files
Update razor
1 parent 9b6b6cf commit c7c2c90

File tree

1 file changed

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

1 file changed

+10
-6
lines changed

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

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

44
@Html.EJS().Button("GetRedoCollection").Content("Get 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).AllowRowDragAndDrop(true).
9-
UndoRedoActions(new List<string>() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete",
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+
AllowRowDragAndDrop(true).
12+
UndoRedoActions(new List<string>() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete",
1013
"Edit", "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()
14+
TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")).
15+
EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true)).
16+
ShowColumnMenu(true).Render()
1317

1418
<script>
1519
document.getElementById('GetUndoCollection').addEventListener('click', function (args) {

0 commit comments

Comments
 (0)