Class
ComboBoxFilteringBehavior

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:

cs-api-definition
public class ComboBoxFilteringBehavior

Inheritance: objectComboBoxFilteringBehavior

Constructors

ComboBoxFilteringBehavior()

Declaration

cs-api-definition
public ComboBoxFilteringBehavior()

Methods

FilterItems(string, SearchMode, string, IEnumerable)

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.

Declaration

cs-api-definition
public virtual IList<object> FilterItems(string searchText, SearchMode searchMode, string searchTextPath, IEnumerable source)

Parameters

searchText

string

The current text entered by the user in the ComboBox.

searchMode

SearchMode

The search mode that defines how matching should be performed.

searchTextPath

string

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

source

IEnumerable

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.