GanttMappings.Dependency Property
Gives access to the dependency object’s mappings.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxGantt.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
GanttTaskDependencyMappingInfo | Contains information on the mappings for the dependency object. |
Remarks
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()
Examples
See Also