ASPxClientGanttTaskEditDialogShowingEventArgs.hiddenFields Property
Specifies hidden fields in the edit dialog.
Declaration
hiddenFields: string[]
Property Value
Type | Description |
---|---|
string[] | An array of hidden fields. |
Remarks
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:
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