You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/combobox/filter.md
+58-1Lines changed: 58 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ The ComboBox component allows the user to filter the available items by their te
14
14
15
15
To enable filtering, set the `Filterable` parameter to `true`.
16
16
17
-
The filter operator is `contains`, it looks in the `TextField`, and filtering is reset when the dropdown closes.
17
+
Filtering ignores casing and the default filter operator is `contains`. Filtering looks in the `TextField`, and the filter is reset when the dropdown closes. You can choose a different operator through the `FilterOperator` parameter that takes a member of the `Telerik.Blazor.StringFilterOperator` enum.
18
18
19
19
>caption Filtering in the ComboBox
20
20
@@ -58,6 +58,63 @@ The filter operator is `contains`, it looks in the `TextField`, and filtering is
58
58
}
59
59
````
60
60
61
+
>caption Choose Filter Operator
62
+
63
+
````CSHTML
64
+
@* Type something in the input to see items filtered. Choose a new filter operator and repeat *@
Copy file name to clipboardExpand all lines: components/combobox/overview.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ The ComboBox is a generic component and its type is determined by the type of th
61
61
*`Data` - allows you to provide the data source. Required.
62
62
*`Enabled` - whether the component is enabled.
63
63
*`Filterable` - whether [filtering]({%slug components/combobox/filter%}) is enabled for the end user.
64
+
*`FilterOperator` - the method of [filtering]({%slug components/combobox/filter%}) the items. Defaults to `StartsWith`.
64
65
*`Placeholder` - the text the user sees as a hint when no item is selected (the `Value` is `null` or an empty string).
65
66
*`PopupHeight` - the height of the expanded dropdown list element.
66
67
*`TItem` - the type of the model to which the component is bound. Required if you can't provide `Data` or `Value`. Determines the type of the reference object.
0 commit comments