Skip to main content

GanttMappings.ResourceAssignment Property

Gives access to the resource assignment object’s mappings.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public GanttTaskResourceAssignmentMappingInfo ResourceAssignment { get; }

Property Value

Type Description
GanttTaskResourceAssignmentMappingInfo

Contains information on the mappings for the resource assignment object.

Remarks

Run Demo: ASPxGantt - Data Binding Run Demo: MVCxGantt - Data Binding and Editing

Web Forms:

<dx:ASPxGantt ID="Gantt" runat="server" Width="100%" KeyFieldName="ID" ParentFieldName="ParentID" ...>
    <Resource Key="ID" Name="Name" />
    <ResourceAssignment Key="ID" TaskKey="TaskID" ResourceKey="ResourceID" />
    ...
</dx:ASPxGantt>

MVC:

@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    ...
    settings.Mappings.Resource.Key = "ID";
    settings.Mappings.Resource.Name = "Name";

    settings.Mappings.ResourceAssignment.Key = "ID";
    settings.Mappings.ResourceAssignment.TaskKey = "TaskID";
    settings.Mappings.ResourceAssignment.ResourceKey = "ResourceID";
    ...
}).Bind(
    GanttDataProvider.Tasks, 
    GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, 
    GanttDataProvider.ResourceAssignments
).GetHtml()

Examples

See Also