Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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 following code snippet sets the HideSelectedItems property to false to display selected data items (Values) in the editor’s drop-down list.

Razor
<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

#Implements

DevExpress.Blazor.ITagBox<TData, TValue>.HideSelectedItems
See Also