Skip to main content
All docs
V25.1
  • ASPxClientGantt.GetResourceData(key) Method

    Gets the resource data.

    Declaration

    GetResourceData(
        key: any
    ): any

    Parameters

    Name Type Description
    key any

    The resource’s key.

    Returns

    Type Description
    any

    The resource’s data.

    Remarks

    Gantt - Resources

    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.

    <dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" >
        //...
    </dx:ASPxGantt>
    
    console.log(clientGantt.GetResourceData("resource_key"));
    

    Concepts

    See Also