FormLayoutGroupBase.ReadOnly Property
Specifies whether the layout group or tab activates read-only mode for all nested auto-generated editors.
Namespace: DevExpress.Blazor.Base
Assembly: DevExpress.Blazor.v21.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true to activate read-only mode; otherwise, false. |
Remarks
Set the ReadOnly property to true to activate read-only mode in auto-generated editors. In this mode, the editors are protected from value changes but users still can focus input UI elements.
<DxFormLayout Data="forecast">
<DxFormLayoutItem Caption="Date" Field="@nameof(WeatherForecast.Date)" />
<DxFormLayoutGroup Caption="Information" ReadOnly="true">
<DxFormLayoutItem Caption="Temperature" Field="@nameof(WeatherForecast.TemperatureC)" />
<DxFormLayoutItem Caption="Precipitation" Field="@nameof(WeatherForecast.Precipitation)" />
</DxFormLayoutGroup>
</DxFormLayout>
The Form Layout and its elements (tabs, tab pages, and groups) apply this property’s value to nested elements. You can specify the corresponding property for a nested element to override this setting.
Component | Property |
---|---|
Form Layout | ReadOnly |
Tab Pages | ReadOnly |
Tab Page | ReadOnly |
Group | ReadOnly |
Item | ReadOnly |
Editor | <Editor_name>.ReadOnly |
See Also