New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI AutoComplete component

Definition

Constructors

Initializes a new instance of the AutoComplete class.

C#
public AutoComplete(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Specifies the adaptive rendering of the component.

C#
public AdaptiveMode? AdaptiveMode { get; set; }

Allows customization of the subtitle's text in the adaptive view of the component.

C#
public string AdaptiveSubtitle { get; set; }

Allows customization of the title's text in the adaptive view of the component.

C#
public string AdaptiveTitle { get; set; }

Animation member.

C#
public PopupAnimation Animation { get; }

If set to true, the widget automatically adjusts the width of the popup element and does not wrap up the item label.

C#
public bool? AutoWidth { get; set; }

Unless this options is set to false, a button will appear when hovering the widget. Clicking that button will reset the widget's value and will trigger the change event.

C#
public bool? ClearButton { get; set; }

Gets or sets the DataSource.

C#
public DataSource DataSource { get; }

Gets or sets the DataSourceId.

C#
public string DataSourceId { get; set; }

The field of the data item used when searching for suggestions. This is the text that will be displayed in the list of matched results.

C#
public string DataTextField { get; set; }

The delay in milliseconds between a keystroke and when the widget displays the suggestion popup.

C#
public double? Delay { get; set; }

If set to false the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.

C#
public bool? Enable { get; set; }

If set to true the widget will not show all items when the text of the search input cleared. By default the widget shows all items when the text of the search input is cleared. Works in conjunction with minLength.

C#
public bool? EnforceMinLength { get; set; }

Sets a value controlling how the color is applied.

C#
public FillMode? FillMode { get; set; }

The filtering method used to determine the suggestions for the current value.

C#
public FilterType? Filter { get; set; }

The template used to render the fixed header group. By default the widget displays only the value of the current group.

C#
public string FixedGroupTemplate { get; set; }

The handler that returns the template used for FixedGroupTemplate

C#
public string FixedGroupTemplateHandler { get; set; }

The id of the script element used for FixedGroupTemplate

C#
public string FixedGroupTemplateId { get; set; }

The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.

C#
public string FooterTemplate { get; set; }

The handler that returns the template used for FooterTemplate

C#
public string FooterTemplateHandler { get; set; }

The id of the script element used for FooterTemplate

C#
public string FooterTemplateId { get; set; }

The template used to render the groups. By default the widget displays only the value of the group.

C#
public string GroupTemplate { get; set; }

The handler that returns the template used for GroupTemplate

C#
public string GroupTemplateHandler { get; set; }

The id of the script element used for GroupTemplate

C#
public string GroupTemplateId { get; set; }

Specifies a static HTML content, which will be rendered as a header of the popup element.

C#
public string HeaderTemplate { get; set; }

The handler that returns the template used for HeaderTemplate

C#
public string HeaderTemplateHandler { get; set; }

The id of the script element used for HeaderTemplate

C#
public string HeaderTemplateId { get; set; }

The height of the suggestion popup in pixels. The default value is 200 pixels.

C#
public double? Height { get; set; }

If set to true the first suggestion will be automatically highlighted.

C#
public bool? HighlightFirst { get; set; }

If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.

C#
public bool? IgnoreCase { get; set; }

Specifies the inputmode attribute of the inner <input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.

C#
public string InputMode { get; set; }

Adds a label before the input. If the input has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.

C#
public AutoCompleteLabelSettings Label { get; }

The text messages displayed in the widget. Use this option to customize or localize the messages.

C#
public AutoCompleteMessagesSettings Messages { get; }

The minimum number of characters the user must type before a search is performed. Set to higher value than 1 if the search could match a lot of items.

C#
public double? MinLength { get; set; }

The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.

C#
public string NoDataTemplate { get; set; }

The handler that returns the template used for NoDataTemplate

C#
public string NoDataTemplateHandler { get; set; }

The id of the script element used for NoDataTemplate

C#
public string NoDataTemplateId { get; set; }

The hint displayed by the widget when it is empty. Not set by default.

C#
public string Placeholder { get; set; }

The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.

C#
public AutoCompletePopupSettings Popup { get; }

The configuration for the prefix adornment of the component.

C#
public AutoCompletePrefixOptionsSettings PrefixOptions { get; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

The character used to separate multiple values. Empty by default.

C#
public string Separator { get; set; }

Separators member.

C#
public string[] Separators { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

The configuration for the suffix adornment of the component.

C#
public AutoCompleteSuffixOptionsSettings SuffixOptions { get; }

If set to true the widget will automatically use the first suggestion as its value.

C#
public bool? Suggest { get; set; }

The template used to render the suggestions. By default the widget displays only the text of the suggestion (configured via dataTextField).

C#
public string Template { get; set; }

The handler that returns the template used for Template

C#
public string TemplateHandler { get; set; }

The id of the script element used for Template

C#
public string TemplateId { get; set; }

The value of the widget.

C#
public string Value { get; set; }

Specifies the value binding behavior for the widget when the initial model value is null. If set to true, the View-Model field will be updated with the selected item text field. If set to false, the View-Model field will be updated with the selected item.

C#
public bool? ValuePrimitive { get; set; }

Enables the virtualization feature of the widget. The configuration can be set on an object, which contains two properties - itemHeight and valueMapper.For detailed information, refer to the article on virtualization.

C#
public AutoCompleteVirtualSettings Virtual { get; }

Methods

GetElement method.

C#
protected override TagBuilder GetElement()
Returns:

TagBuilder

Overrides: WidgetBase.GetElement()

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)