Skip to content

Commit 9b6b6cf

Browse files
Update razor
1 parent ed9350c commit 9b6b6cf

File tree

1 file changed

+8
-4
lines changed
  • ej2-asp-core-mvc/code-snippet/gantt/undo-redo/dynamic

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
@Html.EJS().Button("Redo").Content("Redo").CssClass("e-primary").Render()
44

5-
@Html.EJS().Gantt("Gantt").DataSource((IEnumerable<object>)ViewBag.DataSource).Height("450px").
5+
@Html.EJS().Gantt("Gantt").DataSource((IEnumerable<object>)ViewBag.DataSource).
6+
Height("450px").
67
Toolbar(new List<string>(){ "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit","Indent","Outdent",
7-
"PrevTimeSpan", "NextTimeSpan","Undo","Redo"}).EnableUndoRedo(true).AllowRowDragAndDrop(true).
8+
"PrevTimeSpan", "NextTimeSpan","Undo","Redo"}).
9+
EnableUndoRedo(true).
10+
AllowRowDragAndDrop(true).
811
UndoRedoActions(new List<string>() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", "Edit",
912
"Filtering", "Indent", "Outdent", "NextTimeSpan", "PreviousTimeSpan", "RowDragAndDrop", "Search", "ZoomIn", "ZoomOut", "ZoomToFit" }).
10-
TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")
11-
).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()
1216

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

0 commit comments

Comments
 (0)