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

    Gets the task data.

    Declaration

    GetTaskData(
        key: any
    ): any

    Parameters

    Name Type Description
    key any

    The task’s key.

    Returns

    Type Description
    any

    The task data.

    Remarks

    Gantt - Subtasks

    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.

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

    Concepts

    See Also