Skip to main content
All docs
V24.1

ASPxClientGanttTaskEditDialogShowingEventArgs Class

Contains data for the TaskEditDialogShowing event.

Declaration

declare class ASPxClientGanttTaskEditDialogShowingEventArgs extends ASPxClientCancelEventArgs

Remarks

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

Web Forms:

<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents TaskEditDialogShowing="function(s, e) {
        e.values["Subject"]= "Custom dialog text";
        e.readOnlyFields.push("Subject");
        e.hiddenFields.push("PercentComplete");
    }" />
</dx:ASPxGantt>

MVC:

@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.TaskEditDialogShowing = "function (s, e) { 
        e.values["Subject"]= "Custom dialog text";
        e.readOnlyFields.push("Subject");
        e.hiddenFields.push("PercentComplete");
    }";
    ...
}).Bind(
    GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()

Result:

Gantt - TaskEditDialogShowing Event

Concepts

Inheritance

ASPxClientEventArgs
ASPxClientCancelEventArgs
ASPxClientGanttTaskEditDialogShowingEventArgs
See Also