Skip to main content
A newer version of this page is available. .
All docs
V23.1

DxEditSettings.Enabled Property

Specifies whether an editor is enabled.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.1.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Default Description
Boolean true

true if the editor is enabled; false if the editor is disabled.

Remarks

When the Enabled property is set to false, the editor does not respond to user interactions and users cannot change the editor’s value. In this mode, the editor cannot be focused or navigated.

Note that the Enabled property does not affect the editor displayed in the filter row. To hide the filter row editor, set the FilterRowEditorVisible property to false.

<DxGrid Data="@products" PageSize="4"
        EditMode="GridEditMode.EditRow"
        EditorRenderMode="GridEditorRenderMode.Integrated">
    <Columns>
        <DxGridCommandColumn />
        <DxGridDataColumn FieldName="ProductID" DisplayFormat="00000">
            <EditSettings>
                <DxSpinEditSettings Enabled="false" />
            </EditSettings>
        </DxGridDataColumn>
        <DxGridDataColumn FieldName="ProductName" />
        <DxGridDataColumn FieldName="UnitPrice"  DisplayFormat="c" />
        <DxGridDataColumn FieldName="UnitsInOrder" />  
    </Columns>
</DxGrid>

Disabled Editor

To disable or enable an editor at runtime, use the IEditSettings.Enabled property instead.

Implements

See Also