Back to Devexpress

ASPxClientGantt.UpdateTask(key, data) Method

aspnet-js-aspxclientgantt-dot-updatetask-x28-key-data-x29.md

latest1.5 KB
Original Source

ASPxClientGantt.UpdateTask(key, data) Method

Updates the task data.

Declaration

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

Parameters

NameTypeDescription
keyany

The task’s key.

| | data | any |

The task data.

|

Remarks

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

aspx
<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" >
    //...
</dx:ASPxGantt>
js
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

TaskUpdated

TaskUpdating

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members