|
3 | 3 |
|
4 | 4 | @Html.EJS().Button("ClearRedoCollection").Content("Clear Redo Collection").CssClass("e-primary").Render()
|
5 | 5 |
|
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", |
10 | 12 | "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() |
13 | 16 |
|
14 | 17 | <script>
|
15 | 18 | document.getElementById('ClearUndoCollection').addEventListener('click', function (args) {
|
|
0 commit comments