GanttControlOptionsCustomization.AllowModifyDependencies Property
Gets or sets whether users can modify dependencies between tasks in the chart: change a predecessor or successor of a task, create new dependencies.
Namespace: DevExpress.XtraGantt.Options
Assembly: DevExpress.XtraGantt.v24.2.dll
NuGet Package: DevExpress.Win.Gantt
#Declaration
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean AllowModifyDependencies { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Default |
Default | True, if users can modify dependencies; otherwise, Default or False. |
Available values:
Name | Description | Return Value |
---|---|---|
True | The value is true. |
|
False | The value is false. |
|
Default | The value is specified by a global option or a higher-level object. |
|
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Allow |
---|---|
Gantt |
|
#Remarks
If the AllowModifyDependencies
option is enabled, users can change a task’s predecessor or successor. Users can remove a dependency or attach it to another task if the mouse pointer hovers over the dependency arrow. To create a new dependency, use pointers displayed at task edges.
Note
The Editable option must be enabled and the Read
You can handle the following events to customize an operation:
- TaskDependencyModification — repeatedly fires when the user modifies a task’s dependency.
- TaskDependencyModificationCanceled — fires when the user presses Esc to cancel the operation.
- TaskDependencyModificationCompleted — fires when a user finishes modifying a dependency. Allows you to cancel the operation.
- TaskDependencyModified — fires when a task’s dependency is successfully modified.
See Interactive Editing for more information.