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
This article explains the events available in the Telerik DropDownList for Blazor:
13
+
This article explains the events available in the Telerik ComboBox for Blazor:
14
14
15
15
*[ValueChanged](#valuechanged)
16
16
*`OnChange` - inherited event that you should not use, but you may see in the intellisense
17
17
18
18
19
19
## ValueChanged
20
20
21
-
The `ValueChanged` event fires upon every change of the user selection.
21
+
The `ValueChanged` event fires upon every change of the user selection. When [custom values]({%slug components/combobox/custom-value%}) are enabled, it fires upon every keystroke, like in a regular `<input>` element.
22
22
23
-
>note If the initial `Value` is not present in the data source, the component will select the first item of the data source and this will fire the event as well. If you do not update the field from which the `Value` is taken, you may end in an infinite loop. This scenario is most common when the initial value is `null` as data sources rarely have items with a `null` value.
24
-
25
-
The examples below use [binding]({%slug components/dropdownlist/databind%}) to primitive types for brevity, you can use full models as well.
23
+
The examples below use [binding]({%slug components/combobox/databind%}) to primitive types for brevity, you can use full models as well.
Copy file name to clipboardExpand all lines: components/combobox/overview.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,7 @@ The ComboBox is a generic component and its type is determined by the type of th
80
80
* Validation - see the [Input Validation]({%slug common-features/input-validation%}) article for more details.
81
81
82
82
83
+
>note If the initial `Value` is not present in the data source, the component will **not** select the first item of the data source - there will simply be no selection. For such cases you may want to set `AllowCustom="true"`. This scenario is most common when the initial value is `null` as data sources rarely have items with a `null` value, and when you want to let your users type in values that are not in your predefined set of options.
0 commit comments