New to Telerik UI for .NET MAUIStart a free 30-day trial

Provides custom filtering logic for a RadComboBox control. Inherit from this class to implement custom filtering algorithms beyond the built-in SearchMode options.

Definition

Namespace:Telerik.Maui.Controls.ComboBox

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class ComboBoxFilteringBehavior

Inheritance: objectComboBoxFilteringBehavior

Constructors

C#
public ComboBoxFilteringBehavior()

Methods

Filters the items in the ComboBox based on the provided search criteria. Override this method to implement custom filtering logic that determines which items should be displayed in the dropdown.

C#
public virtual IList<object> FilterItems(string searchText, SearchMode searchMode, string searchTextPath, IEnumerable source)
Parameters:searchTextstring

The current text entered by the user in the ComboBox.

searchModeSearchMode

The search mode that defines how matching should be performed.

searchTextPathstring

The property path used to extract the searchable text from each data item.

sourceIEnumerable

The complete collection of items available in the ComboBox.

Returns:

IList<object>

A filtered list of items that match the search criteria and should be displayed in the dropdown.