Skip to main content

GanttEditingSettings.AllowTaskDelete Property

Specifies whether users can delete tasks.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public bool AllowTaskDelete { get; set; }

Property Value

Type Default Description
Boolean true

true, to allow users to delete tasks; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AllowTaskDelete
ASP.NET MVC Extensions GanttSettings
.SettingsEditing .AllowTaskDelete
ASP.NET Web Forms Controls ASPxGantt
.SettingsEditing .AllowTaskDelete

Remarks

Web Forms:

Run Demo: ASPxGantt - Data Binding and Editing

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

MVC:

Run Demo: MVCxGantt - Data Binding and Editing

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

Concepts

See Also