Data Editing
- 2 minutes to read
In Tree-List Area
The tree-list area in the GanttControl uses the ancestor control’s (TreeListControl) functionality. Refer to the Data Editing and Validation topic in the Tree List documentation for information on how to edit data.
In Gantt Area
The Interactive Editing article explains editing in the Gantt area.
Edit, Create, and Delete Connectors
You can edit connectors in the Gantt Area when Interactive Editing is enabled.
Automatic Scheduling
Once a task has been modified, the GanttControl can recalculate related task positions and update the summary task positions, durations, and progress.
This functionality is available via the following API:
Member | Description |
---|---|
GanttView.AllowSchedulingOnEditing | If enabled, the control re-schedules tasks after each data modification. |
GanttView.ScheduleNode/GanttView.ScheduleDependentNodes | Call these methods to re-schedule tasks on demand if the previous option is disabled. |
GanttView.ScheduleAll | Call this method to re-schedule all the Gantt tasks. |
GanttView.TasksScheduled | This event allows you to rollback the edit changes if they have become the reason for invalid links. |
GanttView.DeleteTask | Use this method to delete a task and re-schedule the affected tasks. |
If a user changes a task so that it conflicts with defined dependencies, the Gantt Control displays these dependencies as invalid.
Refer to the Validation topic for more information.
Data Edit Limitations
- An end user cannot move a task if the task’s StartDate or FinishDate property maps to a read-only data source field.
- An end user cannot resize a task if the task’s Duration or FinishDate property maps to a read-only data source field.
- An end user cannot change a task progress if the task’s Progress property maps to a read-only data source field.
- An end user cannot create/edit/remove a connector if the successor task’s StartDate or FinishDate property maps to a read-only data source field.