This topic explains how to configure a task to either manual or automatic scheduling using the xamGantt™ control.
The following topics are prerequisites to understanding this topic:
This topic contains the following sections:
The following table lists the ProjectTask mode‘s (auto or manual scheduled) configurable aspects. Additional details follow.
The ProjectTask
task mode indicates how a task’s scheduling affected when other changes occur within the project.
Possible task mode values are:
auto scheduled
manually scheduled
When making changes to the project or one of its tasks, results in the rescheduling of the auto-scheduled tasks.
The manually scheduled tasks are only rescheduled when changes are made to it, or either its predecessors or successors changes.
The task mode displays in both in the grid and chart xamGantt section.
In the grid section, the task mode appears in the Task Mode column.
In the chart section, the manual and automatic scheduled tasks differentiated by different colored taskbars.
The following table maps the desired configuration to property settings.
The screenshots below illustrates how to configure the manually scheduled task mode using the following settings:
Task start date and duration are specified:
In C#:
XamGantt gantt = new XamGantt();
Project project = new Project();
ProjectTask manualTask = new ProjectTask();
manualTask.TaskName = "Manual Task";
manualTask.IsManual = true;
manualTask.Duration = TimeSpan.FromHours(16);
manualTask.Start = DateTime.Today.ToUniversalTime();
project.RootTask.Tasks.Add(manualTask);
gantt.Project = project;
In Visual Basic:
Dim gantt As New XamGantt()
Dim project As New Project()
Dim manualTask As New ProjectTask()
manualTask.TaskName = "Manual Task"
manualTask.IsManual = True
manualTask.Duration = TimeSpan.FromHours(16)
manualTask.Start = DateTime.Today.ToUniversalTime()
project.RootTask.Tasks.Add(manualTask)
gantt.Project = project
Specifies a task’s duration, but task’s start and finish dates are undefined and enters free text:
In C#:
XamGantt gantt = new XamGantt();
Project project = new Project();
ProjectTask manualTask = new ProjectTask();
manualTask.TaskName = "Manual Task";
manualTask.IsManual = true;
manualTask.Duration = TimeSpan.FromHours(16);
manualTask.ManualStart = new ManualDateTime("Still In Discussion");
manualTask.ManualFinish = new ManualDateTime("Not Defined Yet");
project.RootTask.Tasks.Add(manualTask);
gantt.Project = project;
In Visual Basic:
Dim gantt As New XamGantt()
Dim project As New Project()
Dim manualTask As New ProjectTask()
manualTask.TaskName = "Manual Task"
manualTask.IsManual = True
manualTask.Duration = TimeSpan.FromHours(16)
manualTask.ManualStart = New ManualDateTime("Still In Discussion")
manualTask.ManualFinish = New ManualDateTime("Not Defined Yet")
project.RootTask.Tasks.Add(manualTask)
gantt.Project = project
The following topics provide additional information related to this topic.