Skip to main content

GanttMappings.Resource Property

Gives access to the resource object’s mappings.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public GanttTaskResourceMappingInfo Resource { get; }

Property Value

Type Description
GanttTaskResourceMappingInfo

Information about the mappings for the resource object.

Remarks

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

Web Forms:

<dx:ASPxGantt ID="Gantt" runat="server" ...>    
    <Resource Key="ID" Name="Name" />
    ...
</dx:ASPxGantt>

MVC:

@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    ...
    settings.Mappings.Resource.Key = "ID";
    settings.Mappings.Resource.Name = "Name";
}).Bind(
    GanttDataProvider.Tasks, 
    GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, 
    GanttDataProvider.ResourceAssignments
).GetHtml()

Examples

See Also