New to Telerik UI for ASP.NET Core? Download free 30-day trial
ASP.NET Core AutoComplete Prefix and Suffix
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Also available for:
CLIENT-SIDE API HTML HELPER APIDescription
The Telerik UI for ASP.NET Core AutoComplete introduces the Prefix and Suffix features that allow you to add custom content like icons, HTML elements, images, and more, before or after the input field.
The prefix input adornment is an element placed before the user input field, and it is commonly used to clarify the expected data in the input, such as currency symbols or unit indicators. The Prefix functionality is set up through the PrefixOptions()
configuration, and it supports the following options:
Icon()
—Inserts an icon before the AutoComplete element. Accepts the name for an existing icon in the Kendo UI theme or SVG content.Template()
—Adds custom content before the AutoComplete element. You can use a variety of templating options likeTemplateId()
,TemplateHandler()
, and more.- Separator(false)—Removes the separator of the prefix adornment. By default, the separator is visible.
The suffix input adornment is an element positioned after the user input field. Usually, it provides direct functionality for the entered data, like password visibility toggles, formatting, or clearing the input. The Suffix functionality is set up through the SuffixOptions()
configuration, and it supports the same options as the Prefix feature:
Icon()
—Inserts an icon after the AutoComplete element.Template()
—Adds custom content for the suffix adornment of the AutoComplete.- Separator(false)—Removes the separator of the suffix adornment. By default, the separator is visible.
This demo shows how to add a Search icon before the AutoComplete and append a Button component after the AutoComplete element.