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/autocomplete/filter.md
+34-41Lines changed: 34 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,57 +10,50 @@ position: 3
10
10
11
11
# AutoComplete Filter
12
12
13
-
The ComboBox component allows the user to filter the available items by their text, so they can find the one they need faster.
13
+
The AutoComplete component can filter the available suggestions according to the current user input, so they can find the one they need faster. To see the difference in behavior, visit the [Live Demo: AutoComplete Filtering](https://demos.telerik.com/blazor-ui/autocomplete/filtering) page.
14
14
15
-
To enable filtering, set the `Filterable` parameter to `true`.
15
+
To enable filtering, set the `Filterable` parameter to `true`. The filter operator is `starts with`, and it ignores casing.
16
16
17
-
The filter operator is `contains`, it looks in the `TextField`, and filtering is reset when the dropdown closes.
17
+
To control when the filter list appears, set the `MinLength` parameter. This can be useful if you have a very large list of data.
18
18
19
-
>caption Filtering in the ComboBox
19
+
>caption Filtering in the AutoComplete
20
20
21
21
````CSHTML
22
-
@* Type something in the input to see items whose text contains only the typed string, for example "uct 2" *@
23
-
24
-
@SelectedValue
25
-
<br />
26
-
27
-
<TelerikComboBox Data="@Data"
28
-
Filterable="true"
29
-
Placeholder="Find product by typing part of its name"
@@ -51,6 +52,7 @@ The AutoComplete is a generic component and its type is determined by the type o
51
52
*`Data` - allows you to provide the data source. Required.
52
53
*`Enabled` - whether the component is enabled.
53
54
*`Filterable` - whether [filtering]({%slug autocomplete-filter%}) is enabled for the end user (suggestions will get narrowed down as they type).
55
+
*`MinLength` - how many characters the text has to be before the suggestions list appears. Cannot be `0`. Often works together with [filtering]({%slug autocomplete-filter%}).
54
56
*`Placeholder` - the text the user sees as a hint when there is no text in the input.
55
57
*`PopupHeight` - the height of the expanded dropdown list element.
56
58
*`PopupWidth` - the width of the expanded dropdown list element.
0 commit comments