All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.

<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:

Concepts

Online Demo

See Also