Back to Devexpress

DxDataEditor<T>.ReadOnly Property

blazor-devexpress-dot-blazor-dot-base-dot-dxdataeditor-1-82b3ac34.md

latest1.2 KB
Original Source

DxDataEditor<T>.ReadOnly Property

Specifies whether read-only mode is active.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(false)]
[Parameter]
public virtual bool ReadOnly { get; set; }

Property Value

TypeDefaultDescription
Booleanfalse

true to activate read-only mode; otherwise, false.

|

Remarks

Set the ReadOnly property to true to activate read-only mode. An editor allows you to display the value, but does not allow users to change it.

razor
<DxMaskedInput @bind-Value="@Value"
               Mask="@NumericMask.Currency"
               ReadOnly="true">
</DxMaskedInput>

@code {
    double Value { get; set; } = 123.45;
}

See Also

DxDataEditor<T> Class

DxDataEditor<T> Members

DevExpress.Blazor.Base Namespace