DxTagBox<TData, TValue>.FilteringMode Property

Specifies how the TagBox component’s data is filtered.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
[DefaultValue(DataGridFilteringMode.Contains)]
public DataGridFilteringMode FilteringMode { get; set; }

Property Value

Type Default Description
DataGridFilteringMode

Contains

A DataGridFilteringMode enumeration value.

Available values:

Name Description
None

The filter is not applied to list items.

StartsWith

Filters the component for list items that begin with the search string.

Contains

Filters the component for list items that contain the search string. Search string matches are highlighted.

Remarks

The TagBox component supports the following filtering modes:

  • Contains - The TagBox filters list items that contain the search string and highlights matches.
  • StartsWith - The TagBox filters list items that begin with the search string and highlights matches.
  • None - The TagBox does not filter list items.
NOTE

When you enable data filtering for a multi-column TagBox, the filter is only applied to columns that are used in the editor’s format pattern.

In the code below, the filtering mode is set to DataGridFilteringMode.StartsWith.

<DxTagBox Data="@Data"
          @bind-Values="@Values"
          FilteringMode="DataGridFilteringMode.StartsWith">
</DxTagBox>

TagBox Filter

Run Demo: TagBox - Filter Modes

See Also