Skip to main content

DxDataEditor<T>.ReadOnly Property

Specifies whether read-only mode is active.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Default Description
Boolean false

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.

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

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