GanttControl.TaskMoveCanceled Event
Fires when a user presses Esc to cancel moving a task. 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.v24.2.dll
NuGet Package: DevExpress.Win.Gantt
#Declaration
#Event Data
The TaskMoveCanceled event's data class is TaskMoveCanceledEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Original |
Gets the processed task’s original (before the operation) finish date.
Inherited from Task |
Original |
Gets the processed task’s original (before the operation) start date.
Inherited from Task |
Processed |
Gets the modified node.
Inherited from Task |
Processed |
Gets the modified task.
Inherited from Task |
Task |
Gets information about segments of the processed split task.
Inherited from Task |
#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 Read
You can handle the following events to customize an operation:
- TaskMoveStarted — fires when a user starts to move a task.
- TaskMoving — repeatedly fires when a user moves a task.
TaskMoveCanceled
— fires when a user presses Esc to cancel the operation.- TaskMoveCompleted — fires when a user finishes moving a task. Allows you to cancel the operation.
TaskMoved — fires when a task is successfully moved.
TaskFinishDateModificationStarted — fires when a user starts to modify a task’s finish date.
- TaskFinishDateModification — repeatedly fires when a user modifies a task’s finish date.
- TaskFinishDateModificationCanceled — fires when a user presses Esc to cancel the operation.
- TaskFinishDateModificationCompleted — fires when a user finishes to modify a finish date. Allows you to cancel the operation.
- TaskFinishDateModified — fires when a task’s finish date is successfully modified.
See Interactive Editing for more information.