The Blazor AutoComplete (or typeahead) is a text box component that provides a list of suggestions to select from as the user types. It has several out-of-the-box features such as data binding, filtering, grouping, UI customization, and accessibility.
Built-in filtering support in the Blazor AutoComplete dropdown includes a rich set of filtering options to meet all your application needs.
Filter data based on starts with, ends with, and contains predicates.
You can customize the built-in filter query or use your own custom filter libraries to populate the data.
The typeahead component supports diacritic character-sensitive searching. This behavior can be turned on or off.
Limit the number of suggestions to be displayed in the filtered data list.
You can filter data with or without using case sensitivity for typed characters.
Set the number of characters required to begin filtering and populating the data.
The high-performance Blazor AutoComplete control lets you configure different visual appearances for the matching text of each suggestion.
The Blazor AutoComplete component has an autofill search option that completes the word the user types based on the suggestion text, allowing the end user to search for items easily.
Group the suggestions based on logically grouped categories with individual headers.
Generate a suggestion list for users as they type in the input text box.
The width and height of the suggestion list is adjustable.
It is possible to hide the default suggestion list and bind the search result to some other component, such as a DataGrid.
Developers can control whether the placeholder should float.
The C# Blazor AutoComplete control seamlessly supports HTML5 forms, Angular template-driven forms, and Angular reactive forms.
The Blazor AutoComplete control provides a responsive mode that displays an adaptive, redesigned UI for mobile devices that recognizes touch gestures.
Developers can customize all UI elements and control their behaviors according to the end user’s requirements using the rich set of client-side APIs.
Easily get started with the Blazor AutoComplete using a few simple lines of C# code example as demonstrated below. Also explore our Blazor AutoComplete Example that shows you how to render and configure the Blazor AutoComplete component.
@using Syncfusion.Blazor.DropDowns
<SfAutoComplete TValue="string" TItem="GameFields" Placeholder="e.g. Basketball" DataSource="@Games">
<AutoCompleteFieldSettings Value="Text"/>
</SfAutoComplete>
@code{
public class GameFields
{
public string ID { get; set; }
public string Text { get; set; }
}
public List<GameFields> Games = new List<GameFields>()
{
new GameFields(){ ID= "Game1", Text= "American Football" },
new GameFields(){ ID= "Game2", Text= "Badminton" },
new GameFields(){ ID= "Game3", Text= "Basketball" },
new GameFields(){ ID= "Game4", Text= "Cricket" },
new GameFields(){ ID= "Game5", Text= "Football" },
new GameFields(){ ID= "Game6", Text= "Golf" },
new GameFields(){ ID= "Game7", Text= "Hockey" },
new GameFields(){ ID= "Game8", Text= "Rugby"},
new GameFields(){ ID= "Game9", Text= "Snooker" },
new GameFields(){ ID= "Game10",Text= "Tennis"}
};
}
The AutoComplete control is also available in the Angular, React, Vue, and JavaScript frameworks, which were built with their own TypeScript libraries. Check out the different AutoComplete platforms from the links below.
Syncfusion Blazor AutoComplete provides the following features:
You can find our Blazor AutoComplete demo here.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.