AutoCompleteBuilder
Defines the fluent API for configuring the Telerik UI for ASP.NET MVC AutoComplete
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class AutoCompleteBuilder : DropDownListBuilderBase<AutoComplete, AutoCompleteBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<AutoComplete, AutoCompleteBuilder>ListBuilderBase<AutoComplete, AutoCompleteBuilder>DropDownListBuilderBase<AutoComplete, AutoCompleteBuilder>AutoCompleteBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the AutoCompleteBuilder class.
public AutoCompleteBuilder(AutoComplete component)
The component.
Methods
If enabled, AutoComplete automatically adjusts the width of the popup element and does not wrap up the item label. Note: Virtualized list does not support the AutoWidth functionality.
Enables or disables the clear button. This button resets the component's value and triggers the Change event.
public AutoCompleteBuilder ClearButton(bool enable)
The boolean value.
Returns:If set to true, AutoComplete will not show all items when the text of the search input is cleared. By default, the AutoComplete shows all items when the text of the search input is cleared.
public AutoCompleteBuilder EnforceMinLength(bool enforceMinLength)
Configures the client-side events.
public AutoCompleteBuilder Events(Action<AutoCompleteEventBuilder> clientEventsAction)
The action that sets the client-side events.
Returns:Controls how the color is applied to the component.
public AutoCompleteBuilder FillMode(FillMode value)
The value for FillMode.
Returns:The filtering method used to determine the suggestions for the current value. The default filter value is "startswith" - all data items that begin with the current component value are displayed in the suggestion popup. The supported FilterType values are "StartsWith" and "Contains".
The filtering method used to determine the suggestions for the current value. The default filter value is "startswith" - all data items that begin with the current component value are displayed in the suggestion popup. The supported filter values are "startswith", "endswith" and "contains".
public AutoCompleteBuilder Filter(string filter)
The value of the filter operator.
Returns:If set to true, the first suggestion will be automatically highlighted.
public AutoCompleteBuilder HighlightFirst(bool highlightFirst)
The boolean value.
Returns:Defines the "inputmode" attribute of the inner <input /> element. The attribute specifies the type of on-screen keyboard displayed when the user focuses the input.
public AutoCompleteBuilder InputMode(string value)
The value that configures the "inputmode" attribute.
Returns:The text messages displayed in the AutoComplete. Use the Messages configuration to customize or localize the default messages.
public AutoCompleteBuilder Messages(Action<MessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:Specifies the minimum number of characters the user must type before a search is performed.
public AutoCompleteBuilder MinLength(int length)
The value for MinLength.
Returns:The hint displayed by the AutoComplete when it is empty. It is not set by default.
public AutoCompleteBuilder Placeholder(string placeholder)
The value for the placeholder.
Returns:The configuration for the prefix adornment of the widget.
public AutoCompleteBuilder PrefixOptions(Action<PrefixOptionsSettingsBuilder> configurator)
The action that configures the prefix options.
Returns:Configures the border radius of the component. The supported values are: "Small", "Medium", "Large", "Full", "None".
public AutoCompleteBuilder Rounded(Rounded? value)
The value for Rounded.
Returns: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 separator)
The values for the separator.
Returns: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[] separators)
The values for the separators.
Returns:Sets the size of the component. The supported values are: "Small", "Medium", "Large", "None".
public AutoCompleteBuilder Size(ComponentSize? value)
The value for Size.
Returns:The configuration for the suffix adornment of the widget.
public AutoCompleteBuilder SuffixOptions(Action<SuffixOptionsSettingsBuilder> configurator)
The action that configures the suffix options.
Returns:If set to true, AutoComplete will automatically use the first suggestion as its value.
public AutoCompleteBuilder Suggest(bool suggest)
The boolean value.
Returns: