Back to Devexpress

GanttEditingBuilder.AllowTaskAdding(Boolean) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-gantteditingbuilder-dot-allowtaskadding-x28-system-dot-boolean-x29.md

latest1.4 KB
Original Source

GanttEditingBuilder.AllowTaskAdding(Boolean) Method

Specifies whether a user can add tasks. Mirrors the client-side allowTaskAdding option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public GanttEditingBuilder AllowTaskAdding(
    bool value
)

Parameters

NameTypeDescription
valueBoolean

The option value.

|

Returns

TypeDescription
GanttEditingBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().Gantt()
    .Editing(editing => editing
        .AllowTaskAdding(true)
    )
)

See Also

GanttEditingBuilder Class

GanttEditingBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace