Back to Devexpress

ASPxClientGantt.GetTaskData(key) Method

aspnet-js-aspxclientgantt-dot-gettaskdata-x28-key-x29.md

latest1.5 KB
Original Source

ASPxClientGantt.GetTaskData(key) Method

Gets the task data.

Declaration

ts
GetTaskData(
    key: any
): any

Parameters

NameTypeDescription
keyany

The task’s key.

|

Returns

TypeDescription
any

The task data.

|

Remarks

The GetTaskData method returns data in the following format:

{ ID: “Task_id”, Name: “Task_name”, Color: “Task_color” }

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
console.log(clientGantt.GetTaskData("task_key"));

Concepts

See Also

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members