Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V20.2
  • ASPxClientGantt.TaskEditDialogShowing Event

    Occurs before the edit dialog is shown.

    Declaration

    TaskEditDialogShowing: ASPxClientEvent<ASPxClientGanttTaskEditDialogShowingEventHandler<ASPxClientGantt>>

    Event Data

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

    Property Description
    cancel Specifies whether to cancel the related action (for example, row edit, export). Inherited from ASPxClientCancelEventArgs.
    hiddenFields Specifies hidden fields in the edit dialog.
    key Specifies the task key.
    readOnlyFields Specifies read-only fields in the edit dialog.
    values Specifies the task values.

    Remarks

    Gantt - Popup Edit Form

    Use the TaskEditDialogShowing event to customize the edit dialog before it is invoked.

    Run Demo

    View Example: How to implement a custom "Task Details" dialog

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

    Result:

    Note that the readOnlyFields and hiddenFields event parameters affect only task fields. Use the AllowTaskResourceUpdate property to hide the Resource Manager in the Task Details dialog.

    Concepts

    See Also