Back to Devexpress

GanttMappings.Resource Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttmappings-92c07d88.md

latest2.0 KB
Original Source

GanttMappings.Resource Property

Gives access to the resource object’s mappings.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
public GanttTaskResourceMappingInfo Resource { get; }
vb
Public ReadOnly Property Resource As GanttTaskResourceMappingInfo

Property Value

TypeDescription
GanttTaskResourceMappingInfo

Information about the mappings for the resource object.

|

Remarks

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

Web Forms:

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

MVC:

cshtml
@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

ASPxGantt - 'How To' Examples

GanttMappings Class

GanttMappings Members

DevExpress.Web.ASPxGantt Namespace