Skip to main content

DxTagBox<TData, TValue>.HideSelectedItems Property

Specifies whether the TagBox hides selected items from the editor’s drop-down list.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(true)]
[Parameter]
public bool HideSelectedItems { get; set; }

Property Value

Type Default Description
Boolean true

true, to hide selected items from the editor’s drop-down list; otherwise, false.

Remarks

The code below sets the HideSelectedItems property to false to display selected data items (Values) in the editor’s drop-down list.

<DxTagBox Data="@DataSource"
          HideSelectedItems="false"
          @bind-Values="@Items"/>

@code {
    String[] DataSource = null;
    IEnumerable<string> Items;

    protected override void OnInitialized() {
        DataSource = new string[] { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6", "Item 7" };
        Items = new List<string>() { DataSource[3], DataSource[5] };
    }
}

TagBox Hide Selected Items

Run Demo: TagBox - Show Selected Items

See Also