Back to Devexpress

GanttControlOptionsBehavior.ScheduleMode Property

windowsforms-devexpress-dot-xtragantt-dot-options-dot-ganttcontroloptionsbehavior.md

latest4.4 KB
Original Source

GanttControlOptionsBehavior.ScheduleMode Property

Gets or sets whether the control automatically reschedules all dependent tasks when a user modifies a particular task. Default is equivalent to Auto.

Namespace : DevExpress.XtraGantt.Options

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
[DefaultValue(ScheduleMode.Default)]
[XtraSerializableProperty]
public ScheduleMode ScheduleMode { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(ScheduleMode.Default)>
Public Property ScheduleMode As ScheduleMode

Property Value

TypeDefaultDescription
ScheduleModeDefault

A value that specifies whether the control automatically updates tasks.

|

Available values:

NameDescription
Default

The mode is not specified explicitly. Enables Auto mode.

| | Auto |

When a user modifies a task, the control automatically reschedules the processed task and all dependent tasks.

| | Manual |

When a user modifies a task, the control does not reschedule the processed task and dependent tasks.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ScheduleMode
GanttControl

.OptionsBehavior .ScheduleMode

|

Remarks

Note that when you change the ScheduleMode property value from Manual to Auto, the control does not automatically reschedules the project. In Auto mode, the control reschedules dependent tasks only when a specific task changes. You should call the ScheduleFromStartDate(DateTime) or ScheduleToFinishDate(DateTime) method to forcibly reschedule the entire project relative to a specific start or finish date.

See Interactive Editing for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ScheduleMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-win-gantt-control/CS/XPO/GanttSolutionXPO/GanttSolutionXPO.Win/Editors/CustomGanttEditor.cs#L85

csharp
control.AllowTouchGestures = DevExpress.Utils.DefaultBoolean.True;
control.OptionsBehavior.ScheduleMode = DevExpress.XtraGantt.Options.ScheduleMode.Auto;
control.OptionsCustomization.AllowModifyTasks = DevExpress.Utils.DefaultBoolean.True;

See Also

CustomTaskScheduling

Interactive Editing

GanttControlOptionsBehavior Class

GanttControlOptionsBehavior Members

DevExpress.XtraGantt.Options Namespace