aspnet-js-aspxclientgantt-c5b5b15b.md
Occurs after a user deleted a dependency.
DependencyDeleted: ASPxClientEvent<ASPxClientGanttDependencyDeletedEventHandler<ASPxClientGantt>>
The DependencyDeleted event's data class is ASPxClientGanttDependencyDeletedEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| key | Specifies the dependency key. |
| values | Specifies the dependency values. |
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:
<dx:ASPxGantt ID="Gantt" >
<ClientSideEvents DependencyDeleted="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()
See Also
ASPxClientGantt.DependencyDeleting