Skip to main content
A newer version of this page is available. .

FormLayoutItemBase.Enabled Property

Specifies whether the auto-generated editors in the Form Layout are enabled.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public bool Enabled { get; set; }

Property Value

Type Description
Boolean

true if the editors are enabled; otherwise, false.

Remarks

Use the Enabled property to enable or disable auto-generated editors in the Form Layout. Users cannot focus disabled editors.

<DxFormLayout Data="@editFormData">
            <DxFormLayoutItem Field="@nameof(FormDataItem.Name)" Caption="Contact Name:" />
            <DxFormLayoutItem Field="@nameof(FormDataItem.BirthDate)" Caption="Birth Date:" Enabled="false"/>
            <DxFormLayoutItem Field="@nameof(FormDataItem.YearsWorked)" Caption="Years Worked:" />
            ...
</DxFormLayout>

Form Layout Item Enabled

You can also disable all auto-generated editors in groups, tabs and tab pages:

<DxFormLayout Data="forecast">
    <DxFormLayoutItem Caption="Date" Field="@nameof(WeatherForecast.Date)" />
    <DxFormLayoutGroup Caption="Information" Enabled="false">
        <DxFormLayoutItem Caption="Temperature" Field="@nameof(WeatherForecast.TemperatureC)" />
        <DxFormLayoutItem Caption="Precipitation" Field="@nameof(WeatherForecast.Precipitation)" />
    </DxFormLayoutGroup>
</DxFormLayout>

Group in Disabled Mode

The Form Layout and its elements (tabs, tab pages, and groups) apply this property’s value to nested elements. You can specify the corresponding property for a nested element to override this setting.

Component Property
Form Layout Enabled
Tab Pages Enabled
Tab Page Enabled
Group Enabled
Item Enabled
Editor <Editor_name>.Enabled
See Also