Class RadzenAutoComplete
RadzenAutoComplete component.
public class RadzenAutoComplete : DataBoundFormComponent<string>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRadzenFormComponent
- Inheritance
-
RadzenAutoComplete
- Implements
- Inherited Members
Examples
<RadzenAutoComplete Data=@customers TextProperty="CompanyName" Change=@(args => Console.WriteLine($"Selected text: {args}")) />
Constructors
RadzenAutoComplete()
public RadzenAutoComplete()
Fields
list
Gets list element reference.
protected ElementReference list
Field Value
search
Gets search input reference.
protected ElementReference search
Field Value
Properties
FilterDelay
Gets or sets the filter delay.
[Parameter]
public int FilterDelay { get; set; }
Property Value
- int
The filter delay.
InputAttributes
Specifies additional custom attributes that will be rendered by the input.
[Parameter]
public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
Property Value
- IReadOnlyDictionary<string, object>
The attributes.
InputType
Gets or sets the underlying input type.
[Parameter]
public string InputType { get; set; }
Property Value
- string
The input type.
Remarks
This does not apply when Multiline is true
.
MaxLength
Gets or sets the underlying max length.
[Parameter]
public long? MaxLength { get; set; }
Property Value
- long?
The max length value.
MinLength
Gets or sets the minimum length.
[Parameter]
public int MinLength { get; set; }
Property Value
- int
The minimum length.
Multiline
Gets or sets a value indicating whether this RadzenAutoComplete is multiline.
[Parameter]
public bool Multiline { get; set; }
Property Value
- bool
true
if multiline; otherwise,false
.
OpenOnFocus
Gets or sets a value indicating whether popup should open on focus. Set to false
by default.
[Parameter]
public bool OpenOnFocus { get; set; }
Property Value
- bool
true
if popup should open on focus; otherwise,false
.
PopupStyle
Gets or sets the Popup height.
[Parameter]
public string PopupStyle { get; set; }
Property Value
- string
The number Popup height.
Query
Gets the IQueryable.
protected override IQueryable Query { get; }
Property Value
- IQueryable
The IQueryable.
Template
Gets or sets the template.
[Parameter]
public RenderFragment<dynamic> Template { get; set; }
Property Value
- RenderFragment<dynamic>
The template.
View
Gets the view - the Query with filtering applied.
protected override IEnumerable View { get; }
Property Value
- IEnumerable
The view.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
Dispose()
public override void Dispose()
FocusAsync()
Sets the focus on the input element.
public override ValueTask FocusAsync()
Returns
GetComponentCssClass()
protected override string GetComponentCssClass()
Returns
OnAfterRenderAsync(bool)
Called on after render asynchronous.
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
firstRender
boolif set to
true
is first render.
Returns
- Task
Task.
OnChange(ChangeEventArgs)
Handles the Change event.
protected Task OnChange(ChangeEventArgs args)
Parameters
args
ChangeEventArgsThe ChangeEventArgs instance containing the event data.
Returns
OnFilterKeyPress(KeyboardEventArgs)
Handles the FilterKeyPress event.
protected Task OnFilterKeyPress(KeyboardEventArgs args)
Parameters
args
KeyboardEventArgsThe KeyboardEventArgs instance containing the event data.
Returns
SetParametersAsync(ParameterView)
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
ParameterView