Skip to main content
All docs
V21.2

ASPxClientGanttTaskEventArgs Class

Provides data for the TaskClick and TaskDblClick events.

Declaration

declare class ASPxClientGanttTaskEventArgs extends ASPxClientCancelEventArgs

Remarks

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

Web Forms:

<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents 
        TaskClick="function(s, e) {
            if (e.key == 5) {
                //...
                e.cancel = true;
            }
        }" 
        TaskDblClick="function(s, e) {
            if (e.key == 10) {
                //...
                e.cancel = true;
            }
        }"    
    />
</dx:ASPxGantt>

MVC:

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

Concepts

Inheritance

See Also