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.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(true)]
[Parameter]
public bool HideSelectedItems { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Remarks
The following code snippet 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] };
}
}
Implements
DevExpress.Blazor.ITagBox<TData, TValue>.HideSelectedItems
See Also