Back to Devexpress

ASPxClientGantt.ResourceManagerDialogShowing Event

aspnet-js-aspxclientgantt-9a827fdc.md

latest3.1 KB
Original Source

ASPxClientGantt.ResourceManagerDialogShowing Event

Occurs before the Resource Manager dialog is shown.

Declaration

ts
ResourceManagerDialogShowing: ASPxClientEvent<ASPxClientGanttResourceManagerDialogShowingEventHandler<ASPxClientGantt>>

Event Data

The ResourceManagerDialogShowing event's data class is ASPxClientGanttResourceManagerDialogShowingEventArgs. The following properties provide information specific to this event:

PropertyDescription
cancelSpecifies whether to cancel the related action (for example, row edit, export). Inherited from ASPxClientCancelEventArgs.
valuesGets resource values.

Remarks

Handle the ResourceManagerDialogShowing event to customize the Resource Manager dialog before it is invoked. You can also use the ShowResourceManagerDialog method or the GanttResourceManagerToolbarItem toolbar item to invoke the Resource Manager.

The AllowTaskResourceUpdate property allows you to hide the Resource Manager button in the Task Details dialog.

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

Web Forms:

aspx
<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents ResourceManagerDialogShowing="function(s, e) {
        // ...
        // Cancels the dialog.
        e.cancel = true;
    }" />
</dx:ASPxGantt>

MVC:

cshtml
@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.ResourceManagerDialogShowing = "function (s, e) { 
        // ...
        // Cancels the dialog.
        e.cancel = true;
    }";
    ...
}).Bind(
    GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()

Concepts

See Also

ASPxGantt - Overview

MVCxGantt - Overview

ASPxGantt - 'How To' Examples

MVCxGantt - 'How To' Examples

ASPxClientGantt Class

ASPxClientGantt Members