Back to Devexpress

DxDataEditor<T>.Enabled Property

blazor-devexpress-dot-blazor-dot-base-dot-dxdataeditor-1-87fc10cc.md

latest1.3 KB
Original Source

DxDataEditor<T>.Enabled Property

Specifies whether an editor is enabled.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

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. In this mode, the component cannot be focused or navigated.

razor
<DxSpinEdit @bind-Value="@DecimalValue"
            Enabled="false" />

@code {
    Decimal DecimalValue { get; set; } = 15;
}

See Also

DxDataEditor<T> Class

DxDataEditor<T> Members

DevExpress.Blazor.Base Namespace