aspnet-401579-components-gantt-edit-data-manage-tasks.md
Run Demo: Data Binding and Editing
Right-click a task and select the “Add” context menu item.
“New Task” - Appends a new task at the same level as the selected task.
“New Subtask” - Adds a child task to the selected task.
Related API:
Use one of the techniques described below to edit a task.
Inline Edit Mode
Popup Edit Form
Drag-And-Drop Mode
Related API:
The Gantt submits changes to the server and refreshes task values in the chart when users edit data in inline or drag-and-drop edit modes.
In the “Task Details” dialog, click OK to get task values from the edit form and save them to the database.
Right-click a task and select the ‘Delete Task’ context menu item to remove a task.
The alert message notifies users that a task deletion creates a gap in the workflow between the preceding and subsequent tasks.
Related API:
The Gantt stores the changes and allows users to use Ctrl+Z and Ctrl+Y to undo and redo changes.
Use the GanttValidationSettings object to access settings that allow you to validate relationships between tasks when they are edited.
<dx:ASPxGantt ID="Gantt" >
...
<SettingsValidation EnableDependencyValidation="true" AutoUpdateParentTasks="true" />
</dx:ASPxGantt>
See Also :
See Also