Back to Devexpress

GanttEditingSettings.Enabled Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-gantteditingsettings.md

latest2.6 KB
Original Source

GanttEditingSettings.Enabled Property

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

Declaration

csharp
[DefaultValue(true)]
public bool Enabled { get; set; }
vb
<DefaultValue(True)>
Public Property Enabled As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true, to allow users to edit data in the control; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to Enabled
ASP.NET MVC ExtensionsGanttSettings

.SettingsEditing .Enabled

| | ASP.NET Web Forms Controls | ASPxGantt |

.SettingsEditing .Enabled

|

Remarks

Web Forms:

Run Demo: ASPxGantt - Data Binding and Editing

aspx
<dx:ASPxGantt ID="Gantt" runat="server" ... >
    // ...
    <SettingsEditing Enabled="False" />
</dx:ASPxGantt>

MVC:

Run Demo: MVCxGantt - Data Binding and Editing

cshtml
@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    ...
    settings.SettingsEditing.Enabled = false;
    ...
}).Bind(
    GanttDataProvider.Tasks, 
    GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, 
    GanttDataProvider.ResourceAssignments
).GetHtml()

Concepts

See Also

ASPxGantt - 'How To' Examples

GanttEditingSettings Class

GanttEditingSettings Members

DevExpress.Web.ASPxGantt Namespace