Back to Devexpress

ASPxClientGantt.DependencyDeleted Event

aspnet-js-aspxclientgantt-c5b5b15b.md

latest2.6 KB
Original Source

ASPxClientGantt.DependencyDeleted Event

Occurs after a user deleted a dependency.

Declaration

ts
DependencyDeleted: ASPxClientEvent<ASPxClientGanttDependencyDeletedEventHandler<ASPxClientGantt>>

Event Data

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

PropertyDescription
keySpecifies the dependency key.
valuesSpecifies the dependency values.

Remarks

Use the DependencyDeleted event to process dependency data when the dependency is deleted.

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

Web Forms:

aspx
<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents DependencyDeleted="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.DependencyDeleting

ASPxClientGantt.DeleteDependency

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members