Back to Devexpress

GanttControlOptionsCustomization.AllowModifyTasks Property

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

latest5.8 KB
Original Source

GanttControlOptionsCustomization.AllowModifyTasks Property

Gets or sets whether users can modify a task’s start and finish dates in the chart: resize its bounds or move it to a new time slot.

Namespace : DevExpress.XtraGantt.Options

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

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

Property Value

TypeDefaultDescription
DefaultBooleanDefault

True, if users can modify a task’s start and finish dates; otherwise, Default or False.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowModifyTasks
GanttControl

.OptionsCustomization .AllowModifyTasks

|

Remarks

If the AllowModifyTasks option is enabled, users can reschedule a task. Users can use the mouse pointer to resize its duration or drag it to a new time slot.

To resize a task, move the mouse pointer over a task’s edge.

Note

The Editable option must be enabled and the ReadOnly option must be disabled to allow users to modify tasks.

You can handle the following events to customize an operation:

See Interactive Editing for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowModifyTasks 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#L86

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

See Also

Interactive Editing

GanttControlOptionsCustomization Class

GanttControlOptionsCustomization Members

DevExpress.XtraGantt.Options Namespace