Back to Devexpress

ASPxClientGantt.GetTaskResources(key) Method

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

latest1.7 KB
Original Source

ASPxClientGantt.GetTaskResources(key) Method

Gets resources assigned to a task.

Declaration

ts
GetTaskResources(
    key: any
): any[]

Parameters

NameTypeDescription
keyany

The task’s key.

|

Returns

TypeDescription
any[]

The resources.

|

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

Concepts

See Also

AssignResourceToTask(resourceKey, taskKey)

UnassignResourceFromTask(resourceKey, taskKey)

GetTaskData(key)

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members