|
2 | 2 |
|
3 | 3 | @Html.EJS().Button("Redo").Content("Redo").CssClass("e-primary").Render()
|
4 | 4 |
|
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"). |
6 | 7 | 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). |
8 | 11 | UndoRedoActions(new List<string>() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", "Edit",
|
9 | 12 | "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() |
12 | 16 |
|
13 | 17 | <script>
|
14 | 18 | document.getElementById('Undo').addEventListener('click', function (args) {
|
|
0 commit comments