All docs
V20.1
20.2 (EAP/Beta)
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.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.v20.1.dll

Declaration

[DXCategory("Events")]
public event TaskMoveCanceledEventHandler TaskMoveCanceled
<DXCategory("Events")>
Public Event TaskMoveCanceled As TaskMoveCanceledEventHandler

Event Data

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

Property Description
OriginalTaskFinish Gets the processed task's original (before the operation) finish date. Inherited from TaskMovedEventArgs.
OriginalTaskStart Gets the processed task's original (before the operation) start date. Inherited from TaskMovedEventArgs.
ProcessedNode Gets the modified node. Inherited from TaskModificationEventArgs.
ProcessedTask Gets the modified task. Inherited from TaskModificationEventArgs.

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 and Automatic Scheduling for more information.

See Also