aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttmappings-9a17c4e9.md
Gives access to the resource assignment object’s mappings.
Namespace : DevExpress.Web.ASPxGantt
Assembly : DevExpress.Web.ASPxGantt.v25.2.dll
NuGet Package : DevExpress.Web
public GanttTaskResourceAssignmentMappingInfo ResourceAssignment { get; }
Public ReadOnly Property ResourceAssignment As GanttTaskResourceAssignmentMappingInfo
| Type | Description |
|---|---|
| GanttTaskResourceAssignmentMappingInfo |
Contains information on the mappings for the resource assignment object.
|
Run Demo: ASPxGantt - Data BindingRun 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()
See Also