Back to Devexpress

ASPxClientGantt.GetResourceAssignmentData(key) Method

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

latest1.9 KB
Original Source

ASPxClientGantt.GetResourceAssignmentData(key) Method

Gets the resource assignment data.

Declaration

ts
GetResourceAssignmentData(
    key: any
): any

Parameters

NameTypeDescription
keyany

The resource assignment’s key.

|

Returns

TypeDescription
any

The resource assignment data.

|

Remarks

The GetResourceAssignmentData method returns data in the following format:

{ ID: “ResourceAssignment_id” ResourceID: “Resource_id” TaskID: “Task_id” }

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.GetResourceAssignmentData("assignment_key"));

Concepts

See Also

AssignResourceToTask(resourceKey, taskKey)

ResourceAssigning

ResourceUnassigning

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members