DxDropDownListEditorBase<TData, TValue>.ReadOnly Property
Specifies whether read-only mode is active.
Namespace: DevExpress.Blazor.Base
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(false)]
[Parameter]
public bool ReadOnly { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
Remarks
Set the ReadOnly
property to true
to activate read-only mode. The editor allows you to display the value, but does not allow users to change it.
<DxTagBox Data="@Fruits"
@bind-Values="@SelectedFruits"
ReadOnly="true"
HideSelectedItems="false">
</DxTagBox>
@code {
String[] Fruits = null;
IEnumerable<string> SelectedFruits;
protected override void OnInitialized() {
Fruits= new string[] { "Apple", "Banana", "Lemon", "Orange", "Pear", "Pinapple", "Peach" };
SelectedFruits = new List<string>() { DataSource[1], DataSource[4] };
}
}
Implements
DevExpress.Blazor.IListEditorBase<TData, TValue>.ReadOnly
See Also