Skip to main content
All docs
V23.2

ASPxClientGanttTaskDeletingEventArgs.key Property

Specifies the task key.

Declaration

key: any

Property Value

Type Description
any

The key.

Remarks

Web Forms:

<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents TaskDeleting="function(s, e) {
        if (e.key == 5) {
            //...
        }
    }" />
</dx:ASPxGantt>

MVC:

@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.TaskDeleting = "function (s, e) { 
        if (e.key == 5) {
            //...
        }        
    }";
    ...
}).Bind(
    GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()
See Also