New to Telerik UI for Blazor? Download Free 30-day trial
MultiSelect - Filtering
- EDIT IN TELERIK REPL
- Change Theme
The Telerik UI for Blazor MultiSelect component allows the user to select multiple values from a list of suggestions. In some scenarios, this list can be long and you might want to display only specific options to the user. The MultiSelect supports filtering functionality to cover such scenarios. This feature allows you to filter the available suggestions according to the current user input, so they can find the one they need faster.
By default, the MultiSelect filtering is disabled. You can enable the filtering by setting the
Filterable parameter of the component to
true. Additionally, the filtering functionality of the MultiSelect supports custom configurations. For example:
- Set the desired filter operator – by default, the options will be filtered by filter operator
StartsWith. You can configure that and choose another operator from the
StringFilterOperatorenum. Provide the desired option to the
FilterOperatorparameter of the Blazor MultiSelect.
- Debounce the filtering – the component has a default debounce delay of 150ms. This will also debounce the filtering when enabled. It is possible to configure that through the
DebounceDelayparameter of the Blazor MultiSelect.
This demo showcases several Blazor MultiSelect instances with various settings. It allows you to configure and test the filtering capabilities. Use the DropDownList in the Configurator section to alter the applied
DebounceDelay value and explore the debouncing behavior. Choose a different filter operator from the dropdown to see how this affects the options displayed in the Blazor MultiSelect popup.
The component also provides a
NoDataTemplate. Use it to customize the dropdown content when there are no items to display.