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
Property Value
Type | Description |
---|---|
GanttTaskResourceAssignmentMappingInfo | Contains information on the mappings for the resource assignment object. |
Remarks
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