Skip to main content
A newer version of this page is available. .
All docs

ASPxClientGantt.DependencyDeleting Event

Occurs before a user deletes a dependency.


DependencyDeleting: ASPxClientEvent<ASPxClientGanttDependencyDeletingEventHandler<ASPxClientGantt>>

Event Data

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

Property Description
cancel Specifies whether to cancel the related action (for example, row edit, export). Inherited from ASPxClientCancelEventArgs.
key Specifies the dependency key.
values Specifies the dependency values.


Use the DependencyDeleting event to process dependency data before the dependency is deleted.

Run Demo

The following example illustrates how to cancel dependency deletion if the dependency’s predecessor task key is 10:

<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents DependencyDeleting="onGanttDependencyDeleting" ... />
function onGanttDependencyDeleting(s, e) {
    if (e.values["ParentID"] == 10) {
        e.cancel = true;


See Also