Skip to main content

DxTagBox<TData, TValue>.ReadOnly Property

Specifies whether read-only mode is active.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor


public override bool ReadOnly { get; set; }

Property Value

Type Default Description
Boolean false

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


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

<DxTagBox Data="@Fruits"

@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] };

Run Demo: TagBox - Read-Only and Disabled Modes

See Also