DxDataEditorBase<T, JSProxyType>.Enabled Property

Specifies whether an editor is enabled.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.dll

Declaration

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

Property Value

Type Default Description
Boolean

true

true if the editor is enabled; otherwise, false.

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/state.

For example, you can use the Enabled property to disable a CheckBox editor in a specific state (checked, unchecked, or indeterminate).

<DxCheckBox Checked="@CheckedValue" Enabled="false">Disabled Checked</DxCheckBox>
<DxCheckBox Checked="@UncheckedValue" Enabled="false">Disabled Unchecked</DxCheckBox>
<DxCheckBox Checked="@IndeterminateValue" Enabled="false">Disabled Indeterminate</DxCheckBox>

@code{
    bool? IndeterminateValue = null;
    bool? CheckedValue = true;
    bool? UncheckedValue = false;
}

CheckBox Enabled

See Also