All docs
V21.2
21.2
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
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.

ASPxClientGantt.UpdateTask(key, data) Method

Updates the task data.

Declaration

UpdateTask(
    key: any,
    data: any
): void

Parameters

Name Type Description
key any

The task’s key.

data any

The task data.

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.UpdateTask("0", { Subject: "Test Name" });

Note that the UpdateTask method does not allow you to change a task’s parent task (ParentID).

Concepts

See Also