Skip to main content
All docs
V24.1

ASPxClientGanttTaskEditDialogShowingEventArgs.hiddenFields Property

Specifies hidden fields in the edit dialog.

Declaration

hiddenFields: string[]

Property Value

Type Description
string[]

An array of hidden fields.

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

Note that the hiddenFields parameter affects only task fields. Use the AllowTaskResourceUpdate property to hide the Resource Manager in the Task Details dialog.

See Also