Skip to content

Commit 4f148d4

Browse files
Update razor
1 parent c7c2c90 commit 4f148d4

File tree

1 file changed

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

1 file changed

+11
-6
lines changed
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
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"}).UndoRedoStepsCount(5).EnableUndoRedo(true).
4-
UndoRedoActions(new List<string>() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete",
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+
UndoRedoStepsCount(5).
6+
EnableUndoRedo(true).
7+
UndoRedoActions(new List<string>() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete",
58
"Edit", "Filtering", "Indent", "Outdent", "NextTimeSpan", "PreviousTimeSpan", "RowDragAndDrop", "Search", "ZoomIn", "ZoomOut", "ZoomToFit" }).
6-
TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")
7-
).EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true).AllowRowDragAndDrop(true).ShowColumnMenu(true)).Render()
9+
TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")).
10+
EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true)).
11+
AllowRowDragAndDrop(true).
12+
ShowColumnMenu(true).Render()

0 commit comments

Comments
 (0)