ASPxClientGanttTaskEditDialogShowingEventArgs.readOnlyFields Property
Specifies read-only fields in the edit dialog.
Declaration
readOnlyFields: string[]
Property Value
Type | Description |
---|---|
string[] | An array of read-only 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 readOnlyFields parameter affects only task fields. Use the AllowTaskResourceUpdate property to hide the Resource Manager in the Task Details dialog.
See Also