aspnet-devexpress-dot-web-dot-aspxgantt-dot-ganttmappings-f4e776ea.md
Gives access to the dependency object’s mappings.
Namespace : DevExpress.Web.ASPxGantt
Assembly : DevExpress.Web.ASPxGantt.v25.2.dll
NuGet Package : DevExpress.Web
public GanttTaskDependencyMappingInfo Dependency { get; }
Public ReadOnly Property Dependency As GanttTaskDependencyMappingInfo
| Type | Description |
|---|---|
| GanttTaskDependencyMappingInfo |
Contains information on the mappings for the dependency 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" ...>
<Dependency
Key="ID"
PredecessorKey="ParentID"
SuccessorKey="DependentID"
DependencyType="Type" />
...
</dx:ASPxGantt>
MVC:
@Html.DevExpress().Gantt(settings => {
...
settings.Mappings.Dependency.Key = "ID";
settings.Mappings.Dependency.PredecessorKey = "ParentID";
settings.Mappings.Dependency.SuccessorKey = "DependentID";
settings.Mappings.Dependency.DependencyType = "Type";
...
}).Bind(
GanttDataProvider.Tasks,
GanttDataProvider.Dependencies,
GanttDataProvider.Resources,
GanttDataProvider.ResourceAssignments
).GetHtml()
See Also