Skip to main content
All docs
V25.1
  • ASPxClientGantt.DependencyInserted Event

    Occurs after a user inserted a dependency.

    #Declaration

    TypeScript
    DependencyInserted: ASPxClientEvent<ASPxClientGanttDependencyInsertedEventHandler<ASPxClientGantt>>

    #Event Data

    The DependencyInserted event's data class is ASPxClientGanttDependencyInsertedEventArgs. The following properties provide information specific to this event:

    Property Description
    key Specifies the dependency key.
    values Specifies the dependency values.

    #Remarks

    Use the DependencyInserted event to process dependency data when a dependency is inserted.

    Gantt - Dependency

    Run Demo: ASPxGantt - Client-Side Events Run Demo: MVCxGantt - Client-Side Events

    Web Forms:

    <dx:ASPxGantt ID="Gantt" >
        <ClientSideEvents DependencyInserted="function(s, e) {
            if (e.values["ParentID"] == 10) {
                //...
            }
        }" />
    </dx:ASPxGantt>
    

    MVC:

    @Html.DevExpress().Gantt(settings => {
        settings.Name = "gantt";
        settings.ClientSideEvents.DependencyDeleted = "function (s, e) { 
            if (e.values["ParentID"] == 10) {
                //...
            }
        }";
        ...
    }).Bind(
        GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
        GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
    ).GetHtml()
    

    #Concepts

    See Also