diff --git a/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/clear/razor b/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/clear/razor index fbdf05a25c..7bfa38081c 100644 --- a/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/clear/razor +++ b/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/clear/razor @@ -3,11 +3,16 @@ @Html.EJS().Button("ClearRedoCollection").Content("Clear Redo Collection").CssClass("e-primary").Render() - @Html.EJS().Gantt("Gantt").DataSource((IEnumerable)ViewBag.DataSource).Height("450px").Toolbar(new List() - { "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit","Indent","Outdent", - "PrevTimeSpan", "NextTimeSpan","Undo","Redo"}).EnableUndoRedo(true).UndoRedoActions(new List() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", "Edit", "Filtering", "Indent", "Outdent", "NextTimeSpan", "PreviousTimeSpan", "RowDragAndDrop", "Search", "ZoomIn", "ZoomOut", "ZoomToFit" }).TaskFields(ts => - ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks") - ).EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true).AllowRowDragAndDrop(true).ShowColumnMenu(true)).Render() + @Html.EJS().Gantt("Gantt").DataSource((IEnumerable)ViewBag.DataSource). + Height("450px"). + Toolbar(new List(){ "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit", + "Indent","Outdent","PrevTimeSpan", "NextTimeSpan","Undo","Redo"}). + EnableUndoRedo(true). + UndoRedoActions(new List() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", "Edit", + "Filtering", "Indent", "Outdent", "NextTimeSpan", "PreviousTimeSpan", "RowDragAndDrop", "Search", "ZoomIn", "ZoomOut", "ZoomToFit" }). + TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")). + EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true)). + ShowColumnMenu(true).Render() \ No newline at end of file + diff --git a/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/dynamic/razor b/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/dynamic/razor index db5df97b1a..b5488e444b 100644 --- a/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/dynamic/razor +++ b/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/dynamic/razor @@ -2,11 +2,17 @@ @Html.EJS().Button("Redo").Content("Redo").CssClass("e-primary").Render() - @Html.EJS().Gantt("Gantt").DataSource((IEnumerable)ViewBag.DataSource).Height("450px").Toolbar(new List() - { "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit","Indent","Outdent", - "PrevTimeSpan", "NextTimeSpan","Undo","Redo"}).EnableUndoRedo(true).UndoRedoActions(new List() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", "Edit", "Filtering", "Indent", "Outdent", "NextTimeSpan", "PreviousTimeSpan", "RowDragAndDrop", "Search", "ZoomIn", "ZoomOut", "ZoomToFit" }).TaskFields(ts => - ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks") - ).EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true).AllowRowDragAndDrop(true).ShowColumnMenu(true)).Render() + @Html.EJS().Gantt("Gantt").DataSource((IEnumerable)ViewBag.DataSource). + Height("450px"). + Toolbar(new List(){ "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit","Indent","Outdent", + "PrevTimeSpan", "NextTimeSpan","Undo","Redo"}). + EnableUndoRedo(true). + AllowRowDragAndDrop(true). + UndoRedoActions(new List() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", "Edit", + "Filtering", "Indent", "Outdent", "NextTimeSpan", "PreviousTimeSpan", "RowDragAndDrop", "Search", "ZoomIn", "ZoomOut", "ZoomToFit" }). + TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")). + EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true)). + ShowColumnMenu(true).Render() \ No newline at end of file + diff --git a/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/retrieve/razor b/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/retrieve/razor index 78a2a3e9a8..26cdfdff40 100644 --- a/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/retrieve/razor +++ b/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/retrieve/razor @@ -3,11 +3,17 @@ @Html.EJS().Button("GetRedoCollection").Content("Get Redo Collection").CssClass("e-primary").Render() - @Html.EJS().Gantt("Gantt").DataSource((IEnumerable)ViewBag.DataSource).Height("450px").Toolbar(new List() - { "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit","Indent","Outdent", - "PrevTimeSpan", "NextTimeSpan","Undo","Redo"}).EnableUndoRedo(true).UndoRedoActions(new List() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", "Edit", "Filtering", "Indent", "Outdent", "NextTimeSpan", "PreviousTimeSpan", "RowDragAndDrop", "Search", "ZoomIn", "ZoomOut", "ZoomToFit" }).TaskFields(ts => - ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks") - ).EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true).AllowRowDragAndDrop(true).ShowColumnMenu(true)).Render() + @Html.EJS().Gantt("Gantt").DataSource((IEnumerable)ViewBag.DataSource). + Height("450px"). + Toolbar(new List(){ "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit", + "Indent","Outdent","PrevTimeSpan", "NextTimeSpan","Undo","Redo"}). + EnableUndoRedo(true). + AllowRowDragAndDrop(true). + UndoRedoActions(new List() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", + "Edit", "Filtering", "Indent", "Outdent", "NextTimeSpan", "PreviousTimeSpan", "RowDragAndDrop", "Search", "ZoomIn", "ZoomOut", "ZoomToFit" }). + TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")). + EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true)). + ShowColumnMenu(true).Render() \ No newline at end of file + diff --git a/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/stepsCount/razor b/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/stepsCount/razor index dc17deaed8..f6e6ba225a 100644 --- a/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/stepsCount/razor +++ b/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/stepsCount/razor @@ -1,5 +1,12 @@ - @Html.EJS().Gantt("Gantt").DataSource((IEnumerable)ViewBag.DataSource).Height("450px").Toolbar(new List() - { "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit","Indent","Outdent", - "PrevTimeSpan", "NextTimeSpan","Undo","Redo"}).UndoRedoStepsCount(5).EnableUndoRedo(true).UndoRedoActions(new List() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", "Edit", "Filtering", "Indent", "Outdent", "NextTimeSpan", "PreviousTimeSpan", "RowDragAndDrop", "Search", "ZoomIn", "ZoomOut", "ZoomToFit" }).TaskFields(ts => - ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks") - ).EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true).AllowRowDragAndDrop(true).ShowColumnMenu(true)).Render() \ No newline at end of file + @Html.EJS().Gantt("Gantt").DataSource((IEnumerable)ViewBag.DataSource). + Height("450px"). + Toolbar(new List(){ "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit", + "Indent","Outdent","PrevTimeSpan", "NextTimeSpan","Undo","Redo"}). + UndoRedoStepsCount(5). + EnableUndoRedo(true). + UndoRedoActions(new List() { "Sorting", "Add", "ColumnReorder", "ColumnResize", "ColumnState", "Delete", + "Edit", "Filtering", "Indent", "Outdent", "NextTimeSpan", "PreviousTimeSpan", "RowDragAndDrop", "Search", "ZoomIn", "ZoomOut", "ZoomToFit" }). + TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")). + EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true)). + AllowRowDragAndDrop(true). + ShowColumnMenu(true).Render() diff --git a/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/undoActions/razor b/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/undoActions/razor index 3a3286c5ed..5ed2c5aa64 100644 --- a/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/undoActions/razor +++ b/ej2-asp-core-mvc/code-snippet/gantt/undo-redo/undoActions/razor @@ -1,5 +1,10 @@ - @Html.EJS().Gantt("Gantt").DataSource((IEnumerable)ViewBag.DataSource).Height("450px").Toolbar(new List() - { "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit","Indent","Outdent", - "PrevTimeSpan", "NextTimeSpan","Undo","Redo"}).EnableUndoRedo(true).UndoRedoActions(new List() { "Delete", "Edit" }).TaskFields(ts => - ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks") - ).EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true).AllowRowDragAndDrop(true).ShowColumnMenu(true)).Render() \ No newline at end of file + @Html.EJS().Gantt("Gantt").DataSource((IEnumerable)ViewBag.DataSource). + Height("450px"). + Toolbar(new List(){ "Add", "Edit", "Update", "Delete", "Search", "ZoomIn", "ZoomOut", "ZoomToFit", + "Indent","Outdent","PrevTimeSpan", "NextTimeSpan","Undo","Redo"}). + AllowRowDragAndDrop(true). + UndoRedoActions(new List() { "Delete", "Edit" }). + EnableUndoRedo(true). + TaskFields(ts =>ts.Id("TaskId").Name("TaskName").StartDate("StartDate").EndDate("EndDate").Duration("Duration").Progress("Progress").Child("SubTasks")). + EditSettings(es=>es.AllowEditing(true).AllowAdding(true).AllowDeleting(true)). + ShowColumnMenu(true).Render()