Skip to main content
All docs
V25.1
  • ASPxClientGanttTaskDeletedEventArgs.key Property

    Specifies the task key.

    Declaration

    key: any

    Property Value

    Type Description
    any

    The key.

    Remarks

    Web Forms:

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

    MVC:

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