Skip to main content
A newer version of this page is available. .
All docs
V21.2

ASPxClientGantt.DeleteTask(key) Method

Deletes a task.

Declaration

DeleteTask(
    key: any
): void

Parameters

Name Type Description
key any

The task’s key.

Remarks

Gantt - Subtasks

The key should have the same format as used in the data source field.

<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" >
    //...
</dx:ASPxGantt>
clientGantt.DeleteTask("task_key");

The alert message notifies users that deleting a task creates a gap in the workflow between the preceding and subsequent tasks.

Gantt - Remove a Task

Concepts

See Also