Skip to main content
All docs
V24.2

ASPxClientGanttTaskEventArgs.htmlEvent Property

Provides access to the parameters associated with the TaskClick and TaskDblClick events.

Declaration

htmlEvent: any

Property Value

Type Description
any

Event parameters.

Remarks

Web Forms:

<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents 
        TaskClick="function(s, e) {
            if (e.htmlEvent.ctrlKey != false) {
                //...
                e.cancel = true;
            }
        }" 
        TaskDblClick="function(s, e) {
            if (e.htmlEvent.ctrlKey != false) {
                //...
                e.cancel = true;
            }
        }"    
    />
</dx:ASPxGantt>

MVC:

@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.TaskClick = "function (s, e) { 
        if (e.htmlEvent.ctrlKey != false) {
            //...
            e.cancel = true;
        }      
    }";
    settings.ClientSideEvents.TaskDblClick = "function (s, e) { 
        if (e.htmlEvent.ctrlKey != false) {
            //...
            e.cancel = true;
        }     
    }";
    ...
}).Bind(
    GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()
See Also