aspnet-devexpress-dot-web-dot-aspxgantt-dot-gantteditingsettings.md
Specifies whether users can add, update and delete tasks, dependencies and resources in the Gantt control.
Namespace : DevExpress.Web.ASPxGantt
Assembly : DevExpress.Web.ASPxGantt.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(true)]
public bool Enabled { get; set; }
<DefaultValue(True)>
Public Property Enabled As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true, to allow users to edit data in the control; otherwise, false.
|
You can access this nested property as listed below:
| Library | Object Type | Path to Enabled |
|---|---|---|
| ASP.NET MVC Extensions | GanttSettings |
.SettingsEditing .Enabled
| | ASP.NET Web Forms Controls | ASPxGantt |
.SettingsEditing .Enabled
|
Web Forms:
Run Demo: ASPxGantt - Data Binding and Editing
<dx:ASPxGantt ID="Gantt" runat="server" ... >
// ...
<SettingsEditing Enabled="False" />
</dx:ASPxGantt>
MVC:
Run Demo: MVCxGantt - Data Binding and Editing
@Html.DevExpress().Gantt(settings => {
settings.Name = "gantt";
...
settings.SettingsEditing.Enabled = false;
...
}).Bind(
GanttDataProvider.Tasks,
GanttDataProvider.Dependencies,
GanttDataProvider.Resources,
GanttDataProvider.ResourceAssignments
).GetHtml()
See Also