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
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.
public virtual IList<object> FilterItems(string searchText, SearchMode searchMode, string searchTextPath, IEnumerable source)
The current text entered by the user in the ComboBox.
searchModeSearchModeThe search mode that defines how matching should be performed.
searchTextPathstringThe property path used to extract the searchable text from each data item.
sourceIEnumerableThe 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.