Skip to main content
All docs
V21.2

ASPxClientGanttResourceAssigningEventArgs Class

Contains data for the ResourceAssigning event.

Declaration

declare class ASPxClientGanttResourceAssigningEventArgs extends ASPxClientCancelEventArgs

Remarks

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

Web Forms:

<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents ResourceAssigning="function(s, e) {
        if (e.values["ResourceID"] == 1) {
            //...
            e.cancel = true;
        }
    }" />
</dx:ASPxGantt>

MVC:

@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.ResourceAssigning = "function (s, e) { 
        if (e.values["ResourceID"] == 1) {
            //...
            e.cancel = true;
        }  
    }";
    ...
}).Bind(
    GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()

Concepts

Inheritance

ASPxClientEventArgs
ASPxClientCancelEventArgs
ASPxClientGanttResourceAssigningEventArgs
See Also