Class TelerikAutoComplete<TItem>
The class for the Telerik AutoComplete component.
Inheritance
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikAutoComplete<TItem> : TelerikSelectBase<TItem, string>, IDisposable, IPopupContainer, ILabelableInput
Type Parameters
TItem
|
Constructors
TelerikAutoComplete()
Declaration
public TelerikAutoComplete()
Properties
AutoCompletePrefixTemplate
The content of the AutoComplete prefix.
Declaration
public RenderFragment AutoCompletePrefixTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment
|
AutoCompleteSettings
Defines a renderfragment that contains all settings for the autocomplete. AutoCompletePopupSettings.
Declaration
public RenderFragment AutoCompleteSettings { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment
|
AutoCompleteSuffixTemplate
The content of the AutoComplete suffix.
Declaration
public RenderFragment AutoCompleteSuffixTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment
|
DebounceDelay
Time in ms between the last typed symbol and the firing of the internal oninput event. Default is 150ms.
Declaration
public int DebounceDelay { get; set; }
Property Value
System.Int32
|
FilterOperator
Defines the filter operator. Default value is StringFilterOperator.StartsWith.
Declaration
public StringFilterOperator FilterOperator { get; set; }
Property Value
StringFilterOperator
|
ItemTemplate
Defines the item template of the list items.
Declaration
public RenderFragment<TItem> ItemTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment<TItem>
|
LoaderShowDelay
The delay after which the loader in the suggestion list will be displayed.
Declaration
public int LoaderShowDelay { get; set; }
Property Value
System.Int32
|
MinLength
Defines minimum number of characters in the input before suggestions are displayed.
Declaration
public int MinLength { get; set; }
Property Value
System.Int32
|
OnClose
Defines the OnClose Event which is fired before the suggestion list of the AutoComplete is closed.
Declaration
public EventCallback<AutoCompleteCloseEventArgs> OnClose { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<AutoCompleteCloseEventArgs>
|
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
public Action<AutoCompleteItemRenderEventArgs<TItem>> OnItemRender { get; set; }
Property Value
System.Action<AutoCompleteItemRenderEventArgs<TItem>>
|
OnOpen
Defines the OnOpen Event which is fired before the suggestion list of the AutoComplete is opened.
Declaration
public EventCallback<AutoCompleteOpenEventArgs> OnOpen { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<AutoCompleteOpenEventArgs>
|
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
public EventCallback<AutoCompleteReadEventArgs> OnRead { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<AutoCompleteReadEventArgs>
|
Placeholder
The hint that is shown if no there is no value.
Declaration
public string Placeholder { get; set; }
Property Value
System.String
|
ShowClearButton
Defines whether to render a clear button in the AutoComplete. Clear Button is displayed on hover when the AutoComplete has value.
Declaration
public bool ShowClearButton { get; set; }
Property Value
System.Boolean
|
ShowPrefixSeparator
Defines whether the prefix separator should be shown. The default value is true.
Declaration
public bool ShowPrefixSeparator { get; set; }
Property Value
System.Boolean
|
ShowSuffixSeparator
Defines whether the suffix separator should be shown. The default value is true.
Declaration
public bool ShowSuffixSeparator { get; set; }
Property Value
System.Boolean
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
OnAfterRenderAsync(Boolean)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
System.Boolean
firstRender
|
Returns
System.Threading.Tasks.Task
|
Overrides
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
System.Threading.Tasks.Task
|