Skip to main content
All docs
V21.2

ASPxClientGanttResourceUnassigningEventArgs Class

Contains data for the ResourceUnassigning event.

Declaration

declare class ASPxClientGanttResourceUnassigningEventArgs extends ASPxClientCancelEventArgs

Remarks

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

Web Forms:

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

MVC:

@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.ResourceUnassigning = "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
ASPxClientGanttResourceUnassigningEventArgs
See Also