DxFormLayoutItem.Enabled Property

Specifies whether the Form Layout item’s auto-generated editor is enabled.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

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

Property Value

Type Description
Boolean

true if the editor is enabled; otherwise, false.

Remarks

Use the Enabled property to enable or disable a Form Layout item’s editor. This property only affects auto-generated 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

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