ClassTelerikAutoComplete<TItem>
The class for the Telerik AutoComplete component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Type Parameters:
TItem
Syntax:
public class TelerikAutoComplete<TItem> : TelerikSelectBase<TItem, string>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IPopupContainer
Inheritance: objectComponentBaseBaseComponentDataBoundComponent<TItem>TelerikSelectBase<TItem, string>TelerikAutoComplete<TItem>
Implements:
Inherited Members
Constructors
TelerikAutoComplete()
Declaration
public TelerikAutoComplete()
Properties
AutoCompletePrefixTemplate
The content of the AutoComplete prefix.
Declaration
[Parameter]
public RenderFragment AutoCompletePrefixTemplate { get; set; }
Property Value
AutoCompleteSettings
Defines a renderfragment that contains all settings for the autocomplete. AutoCompletePopupSettings.
Declaration
[Parameter]
public RenderFragment AutoCompleteSettings { get; set; }
Property Value
AutoCompleteSuffixTemplate
The content of the AutoComplete suffix.
Declaration
[Parameter]
public RenderFragment AutoCompleteSuffixTemplate { get; set; }
Property Value
DebounceDelay
Time in ms between the last typed symbol and the firing of the internal oninput event. Default is 150ms.
FilterOperator
Defines the filter operator. Default value is StringFilterOperator.StartsWith.
Declaration
[Parameter]
public StringFilterOperator FilterOperator { get; set; }
Property Value
ItemTemplate
Defines the item template of the list items.
Declaration
[Parameter]
public RenderFragment<TItem> ItemTemplate { get; set; }
Property Value
RenderFragment<TItem>
LoaderShowDelay
The delay after which the loader in the suggestion list will be displayed.
Declaration
[Parameter]
public int LoaderShowDelay { get; set; }
Property Value
MinLength
Defines minimum number of characters in the input before suggestions are displayed.
OnClose
Defines the OnClose Event which is fired before the suggestion list of the AutoComplete is closed.
Declaration
[Parameter]
public EventCallback<AutoCompleteCloseEventArgs> OnClose { get; set; }
Property Value
OnItemRender
Fires each time an item in dropdown renders. Use the event to add a custom CSS class to each dropdown item based on its value.
Declaration
[Parameter]
public Action<AutoCompleteItemRenderEventArgs<TItem>> OnItemRender { get; set; }
Property Value
OnOpen
Defines the OnOpen Event which is fired before the suggestion list of the AutoComplete is opened.
Declaration
[Parameter]
public EventCallback<AutoCompleteOpenEventArgs> OnOpen { get; set; }
Property Value
OnRead
Fires when the data source is read. Use this to attach your own filtering logic. Once attached, you must implement all such data source operations here, the Component will no longer perform them for you.
Declaration
[Parameter]
public EventCallback<AutoCompleteReadEventArgs> OnRead { get; set; }
Property Value
Placeholder
The hint that is shown if no there is no value.
Declaration
[Parameter]
public string Placeholder { get; set; }
Property Value
ShowClearButton
Defines whether to render a clear button in the AutoComplete. Clear Button is displayed on hover when the AutoComplete has value.
Declaration
[Parameter]
public bool ShowClearButton { get; set; }
Property Value
ShowPrefixSeparator
Defines whether the prefix separator should be shown. The default value is true.
Declaration
[Parameter]
public bool ShowPrefixSeparator { get; set; }
Property Value
ShowSuffixSeparator
Defines whether the suffix separator should be shown. The default value is true.
Declaration
[Parameter]
public bool ShowSuffixSeparator { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides