ASPxClientGantt.AssignResourceToTask(resourceKey, taskKey) Method
In This Article
Assigns a resource to a task.
#Declaration
TypeScript
AssignResourceToTask(
resourceKey: any,
taskKey: any
): void
#Parameters
Name | Type | Description |
---|---|---|
resource |
any | The resource’s key. |
task |
any | The task’s key. |
#Remarks
The keys should have the same format as used in the data source fields.
<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" >
//...
</dx:ASPxGantt>
clientGantt.AssignResourceToTask("resource_key", "task_key");
#Concepts
See Also