Add a custom value to Blazor ComboBox component
1 Dec 20251 minute to read
Enable users to enter values that are not present in the data by using the AllowCustom property on SfComboBox. When the typed text does not match any items, an “Add” option appears in the popup. Selecting this option commits the custom value. The default value of AllowCustom is true.
To persist the new entry to the underlying data source, handle application logic (for example, in value change handling) to add the custom value to the collection. Users can also commit a custom value with the keyboard (such as pressing Enter) when appropriate.