Back to Devexpress

ASPxClientGantt.GetResourceData(key) Method

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

latest1.6 KB
Original Source

ASPxClientGantt.GetResourceData(key) Method

Gets the resource data.

Declaration

ts
GetResourceData(
    key: any
): any

Parameters

NameTypeDescription
keyany

The resource’s key.

|

Returns

TypeDescription
any

The resource’s data.

|

Remarks

The GetResourceData method returns data in the following format:

{ ID: “Resource_id”, Name: “Resource_name”, Color: “Resource_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.GetResourceData("resource_key"));

Concepts

See Also

GetResourceAssignmentData(key)

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members