Skip to main content
All docs
V24.1

ASPxClientGantt.InsertTask(data) Method

Inserts a new task.

Declaration

InsertTask(
    data: any
): void

Parameters

Name Type Description
data any

The task data.

Remarks

Gantt - Subtasks

The keys should have the same format as used in the data source fields.

<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" >
    //...
</dx:ASPxGantt>
// Inserts a new task with the specified subject at the end of the other tasks.
clientGantt.InsertTask({ Subject: "Test task"});

// Inserts a child task with the specified subject as a child of the task with ID = 2 
clientGantt.InsertTask({ ParentID: 2, Subject: "Test task"});

Concepts

See Also