AutoCompleteBuilder
Defines the fluent API for configuring the Telerik UI for ASP.NET Core AutoComplete
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class AutoCompleteBuilder : MvvmWidgetBuilderBase<AutoComplete, AutoCompleteBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<AutoComplete, AutoCompleteBuilder>MvvmWidgetBuilderBase<AutoComplete, AutoCompleteBuilder>AutoCompleteBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the AutoCompleteBuilder class.
Methods
Specifies the adaptive rendering of the component.
public AutoCompleteBuilder AdaptiveMode(AdaptiveMode value)
The value for AdaptiveMode
Returns:Returns the current AutoCompleteBuilder instance.
Allows customization of the subtitle's text in the adaptive view of the component.
public AutoCompleteBuilder AdaptiveSubtitle(string value)
The value for AdaptiveSubtitle
Returns:Returns the current AutoCompleteBuilder instance.
Allows customization of the title's text in the adaptive view of the component.
public AutoCompleteBuilder AdaptiveTitle(string value)
The value for AdaptiveTitle
Returns:Returns the current AutoCompleteBuilder instance.
Configures the opening and closing animations of the suggestion popup.
public AutoCompleteBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action that configures the popup animation effects.
Returns:Returns the current AutoCompleteBuilder instance.
Configures the opening and closing animations of the suggestion popup.
public AutoCompleteBuilder Animation(bool enable)
The boolean value.
Returns:Returns the current AutoCompleteBuilder instance.
If set to true, the widget automatically adjusts the width of the popup element and does not wrap up the item label.
public AutoCompleteBuilder AutoWidth(bool value)
The value for AutoWidth
Returns:Returns the current AutoCompleteBuilder instance.
Binds the component to an IEnumerable collection.
public AutoCompleteBuilder BindTo(IEnumerable data)
The IEnumerable collection.
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder ClearButton(bool value)
The value for ClearButton
Returns:Returns the current AutoCompleteBuilder instance.
Sets the DataSource configuration of the AutoComplete for remote data binding.
public AutoCompleteBuilder DataSource(Action<ReadOnlyDataSourceBuilder> configurator)
The action that configures the DataSource.
Returns:Returns the current AutoCompleteBuilder instance.
Sets a standalone DataSource Component as a data source of the AutoComplete for remote data binding.
public AutoCompleteBuilder DataSource(string dataSourceId)
The name of the DataSource Component.
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder DataTextField(string value)
The value for DataTextField
Returns:Returns the current AutoCompleteBuilder instance.
The delay in milliseconds between a keystroke and when the widget displays the suggestion popup.
public AutoCompleteBuilder Delay(double value)
The value for Delay
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder Enable(bool value)
The value for Enable
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder EnforceMinLength()
Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder EnforceMinLength(bool value)
The value for EnforceMinLength
Returns:Returns the current AutoCompleteBuilder instance.
Configures the client-side events.
public AutoCompleteBuilder Events(Action<AutoCompleteEventBuilder> configurator)
The client events action.
Returns:Returns the current AutoCompleteBuilder instance.
Sets a value controlling how the color is applied.
public AutoCompleteBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current AutoCompleteBuilder instance.
The filtering method used to determine the suggestions for the current value.
public AutoCompleteBuilder Filter(FilterType value)
The value for Filter
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public AutoCompleteBuilder FixedGroupTemplate(string value)
The value for FixedGroupTemplate
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public AutoCompleteBuilder FixedGroupTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the fixedgrouptemplate.
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public AutoCompleteBuilder FixedGroupTemplateHandler(string templateHandler)
The handler that returs the template for FixedGroupTemplate
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public AutoCompleteBuilder FixedGroupTemplateId(string templateId)
The ID of the template element for FixedGroupTemplate
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public AutoCompleteBuilder FixedGroupTemplateView(IHtmlContent templateView)
The view that contains the template for FixedGroupTemplate
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder FooterTemplate(string value)
The value for FooterTemplate
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder FooterTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the footertemplate.
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder FooterTemplateHandler(string templateHandler)
The handler that returs the template for FooterTemplate
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder FooterTemplateId(string templateId)
The ID of the template element for FooterTemplate
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder FooterTemplateView(IHtmlContent templateView)
The view that contains the template for FooterTemplate
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public AutoCompleteBuilder GroupTemplate(string value)
The value for GroupTemplate
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public AutoCompleteBuilder GroupTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the grouptemplate.
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public AutoCompleteBuilder GroupTemplateHandler(string templateHandler)
The handler that returs the template for GroupTemplate
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public AutoCompleteBuilder GroupTemplateId(string templateId)
The ID of the template element for GroupTemplate
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public AutoCompleteBuilder GroupTemplateView(IHtmlContent templateView)
The view that contains the template for GroupTemplate
Returns:Returns the current AutoCompleteBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public AutoCompleteBuilder HeaderTemplate(string value)
The value for HeaderTemplate
Returns:Returns the current AutoCompleteBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public AutoCompleteBuilder HeaderTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the headertemplate.
Returns:Returns the current AutoCompleteBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public AutoCompleteBuilder HeaderTemplateHandler(string templateHandler)
The handler that returs the template for HeaderTemplate
Returns:Returns the current AutoCompleteBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public AutoCompleteBuilder HeaderTemplateId(string templateId)
The ID of the template element for HeaderTemplate
Returns:Returns the current AutoCompleteBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public AutoCompleteBuilder HeaderTemplateView(IHtmlContent templateView)
The view that contains the template for HeaderTemplate
Returns:Returns the current AutoCompleteBuilder instance.
The height of the suggestion popup in pixels. The default value is 200 pixels.
public AutoCompleteBuilder Height(double value)
The value for Height
Returns:Returns the current AutoCompleteBuilder instance.
If set to true the first suggestion will be automatically highlighted.
public AutoCompleteBuilder HighlightFirst()
Returns the current AutoCompleteBuilder instance.
If set to true the first suggestion will be automatically highlighted.
public AutoCompleteBuilder HighlightFirst(bool value)
The value for HighlightFirst
Returns:Returns the current AutoCompleteBuilder instance.
If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.
public AutoCompleteBuilder IgnoreCase(bool value)
The value for IgnoreCase
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder InputMode(string value)
The value for InputMode
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder Label(Action<AutoCompleteLabelSettingsBuilder> configurator)
The AutoCompleteLabelSettingsBuilder for the label setting.
Returns:Returns the current instance of AutoCompleteBuilder .
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.
public AutoCompleteBuilder Label(string label)
The label.
Returns:Returns the current instance of AutoCompleteBuilder .
The text messages displayed in the widget. Use this option to customize or localize the messages.
public AutoCompleteBuilder Messages(Action<AutoCompleteMessagesSettingsBuilder> configurator)
The AutoCompleteMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of AutoCompleteBuilder .
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.
public AutoCompleteBuilder MinLength(double value)
The value for MinLength
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder NoDataTemplate(string value)
The value for NoDataTemplate
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder NoDataTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the nodatatemplate.
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder NoDataTemplateHandler(string templateHandler)
The handler that returs the template for NoDataTemplate
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder NoDataTemplateId(string templateId)
The ID of the template element for NoDataTemplate
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder NoDataTemplateView(IHtmlContent templateView)
The view that contains the template for NoDataTemplate
Returns:Returns the current AutoCompleteBuilder instance.
The hint displayed by the widget when it is empty. Not set by default.
public AutoCompleteBuilder Placeholder(string value)
The value for Placeholder
Returns:Returns the current AutoCompleteBuilder instance.
The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.
public AutoCompleteBuilder Popup(Action<AutoCompletePopupSettingsBuilder> configurator)
The configurator for the popup setting.
Returns:Returns the current AutoCompleteBuilder instance.
The configuration for the prefix adornment of the component.
public AutoCompleteBuilder PrefixOptions(Action<AutoCompletePrefixOptionsSettingsBuilder> configurator)
The AutoCompletePrefixOptionsSettingsBuilder for the prefixoptions setting.
Returns:Returns the current instance of AutoCompleteBuilder .
Sets a value controlling the border radius.
public AutoCompleteBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current AutoCompleteBuilder instance.
The character used to separate multiple values. Empty by default.
public AutoCompleteBuilder Separator(string value)
The value for Separator
Returns:Returns the current AutoCompleteBuilder instance.
The character used to separate multiple values. Empty by default. All separators will be replaced with the first array item, which acts as a default separator. Using the separator option will still bind the primitive stringe value of the input. In case you need to bind multiple data items, you can consider the MultiSelect component.
public AutoCompleteBuilder Separator(string[] value)
The values for the separators.
Returns:Returns the current AutoCompleteBuilder instance.
Sets the size of the component.
public AutoCompleteBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current AutoCompleteBuilder instance.
The configuration for the suffix adornment of the component.
public AutoCompleteBuilder SuffixOptions(Action<AutoCompleteSuffixOptionsSettingsBuilder> configurator)
The AutoCompleteSuffixOptionsSettingsBuilder for the suffixoptions setting.
Returns:Returns the current instance of AutoCompleteBuilder .
If set to true the widget will automatically use the first suggestion as its value.
If set to true the widget will automatically use the first suggestion as its value.
public AutoCompleteBuilder Suggest(bool value)
The value for Suggest
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the suggestions. By default the widget displays only the text of the suggestion (configured via dataTextField).
public AutoCompleteBuilder Template(string value)
The value for Template
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the suggestions. By default the widget displays only the text of the suggestion (configured via dataTextField).
public AutoCompleteBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the suggestions. By default the widget displays only the text of the suggestion (configured via dataTextField).
public AutoCompleteBuilder TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the suggestions. By default the widget displays only the text of the suggestion (configured via dataTextField).
public AutoCompleteBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current AutoCompleteBuilder instance.
The template used to render the suggestions. By default the widget displays only the text of the suggestion (configured via dataTextField).
public AutoCompleteBuilder TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current AutoCompleteBuilder instance.
The value of the widget.
public AutoCompleteBuilder Value(string value)
The value for Value
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder ValuePrimitive()
Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder ValuePrimitive(bool value)
The value for ValuePrimitive
Returns:Returns the current AutoCompleteBuilder instance.
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.
public AutoCompleteBuilder Virtual()
Returns the current instance of AutoCompleteVirtualSettingsBuilder .
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.
public AutoCompleteBuilder Virtual(Action<AutoCompleteVirtualSettingsBuilder> configurator)
The AutoCompleteVirtualSettingsBuilder for the virtual setting.
Returns:Returns the current instance of AutoCompleteBuilder .
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.
public AutoCompleteBuilder Virtual(bool enabled)
Enables or disables the virtual option.
Returns:Returns the current instance of AutoCompleteVirtualSettingsBuilder .