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