Skip to main content

GanttMappings.Dependency Property

Gives access to the dependency object’s mappings.

Namespace: DevExpress.Web.ASPxGantt

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

Declaration

public GanttTaskDependencyMappingInfo Dependency { get; }

Property Value

Type Description
GanttTaskDependencyMappingInfo

Contains information on the mappings for the dependency object.

Remarks

Run Demo: ASPxGantt - Data Binding Run 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()

Examples

See Also