All docs
V21.2
21.2
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

GanttControl.TaskDependencyModification Event

Repeatedly fires when a user modifies a task’s dependency. This event only fires when a user modifies a task in the chart. When the user modifies a task in the task list, the event does not fire.

Namespace: DevExpress.XtraGantt

Assembly: DevExpress.XtraGantt.v21.2.dll

Declaration

[DXCategory("Events")]
public event TaskDependencyModificationEventHandler TaskDependencyModification

Event Data

The TaskDependencyModification event's data class is TaskDependencyModificationCancelEventArgs. The following properties provide information specific to this event:

Property Description
Allow Gets or sets whether users are allowed to modify the dependency.
Cancel Allows you to cancel the operation.
ChangeType Gets the type of the operation. Inherited from TaskDependencyModificationEventArgs.
OriginalSuccessorNode Gets the processed dependency’s original (before the operation) successor node. Inherited from TaskDependencyModificationEventArgs.
OriginalSuccessorTask Gets the processed dependency’s original (before the operation) successor task. Inherited from TaskDependencyModificationEventArgs.
PredecessorNode Gets the processed dependency’s current (during the operation) predecessor node. Inherited from TaskDependencyModificationEventArgs.
PredecessorTask Gets the processed dependency’s current (during the operation) predecessor task. Inherited from TaskDependencyModificationEventArgs.
SuccessorNode Gets the processed dependency’s current (during the operation) successor node. Inherited from TaskDependencyModificationEventArgs.
SuccessorTask Gets the processed dependency’s current (during the operation) successor task. Inherited from TaskDependencyModificationEventArgs.
Type Gets the type of the processed dependency. Inherited from TaskDependencyModificationEventArgs.

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.

image

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.

See Also