ClassComboBoxFilteringBehavior
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:
public class ComboBoxFilteringBehavior
Inheritance: objectComboBoxFilteringBehavior
Constructors
ComboBoxFilteringBehavior()
Declaration
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
public virtual IList<object> FilterItems(string searchText, SearchMode searchMode, string searchTextPath, IEnumerable source)
Parameters
searchText
The current text entered by the user in the ComboBox.
searchMode
The search mode that defines how matching should be performed.
searchTextPath
The property path used to extract the searchable text from each data item.
source
The complete collection of items available in the ComboBox.
Returns
A filtered list of items that match the search criteria and should be displayed in the dropdown.