Custom value enable and disable
4 Nov 20251 minute to read
The AutoComplete supports entering custom values that are not present in the predefined data set. This behavior is controlled by the AllowCustom property, which is enabled by default. When enabled, a user-entered custom value is accepted and submitted with the form during postback. To restrict input to only the items in the data source, set AllowCustom="false".
@using Syncfusion.Blazor.DropDowns
<SfAutoComplete TValue="string" TItem="Country" Placeholder="Select a country" AllowCustom=true DataSource="@LocalData">
<AutoCompleteFieldSettings Value="Name" />
</SfAutoComplete>