Back to Devexpress

ASPxClientGantt.DependencyInserted Event

aspnet-js-aspxclientgantt-d3b447d8.md

latest2.6 KB
Original Source

ASPxClientGantt.DependencyInserted Event

Occurs after a user inserted a dependency.

Declaration

ts
DependencyInserted: ASPxClientEvent<ASPxClientGanttDependencyInsertedEventHandler<ASPxClientGantt>>

Event Data

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

PropertyDescription
keySpecifies the dependency key.
valuesSpecifies the dependency values.

Remarks

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

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

Web Forms:

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

MVC:

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

ASPxClientGantt.DependencyInserting

ASPxClientGantt.InsertDependency

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members