Class RadzenAutoComplete
RadzenAutoComplete component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenAutoComplete : DataBoundFormComponent<string>, IDisposable, IRadzenFormComponent
Examples
<RadzenAutoComplete Data=@customers TextProperty="CompanyName" Change=@(args => Console.WriteLine($"Selected text: {args}")) />
Fields
list
Gets list element reference.
Declaration
protected ElementReference list
Field Value
Type | Description |
---|---|
ElementReference |
search
Gets search input reference.
Declaration
protected ElementReference search
Field Value
Type | Description |
---|---|
ElementReference |
Properties
FilterDelay
Gets or sets the filter delay.
Declaration
public int FilterDelay { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The filter delay. |
InputAttributes
Specifies additional custom attributes that will be rendered by the input.
Declaration
public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<System.String, System.Object> | The attributes. |
InputType
Gets or sets the underlying input type.
Declaration
public string InputType { get; set; }
Property Value
Type | Description |
---|---|
System.String | The input type. |
Remarks
This does not apply when Multiline is true
.
MaxLength
Gets or sets the underlying max length.
Declaration
public long? MaxLength { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | The max length value. |
MinLength
Gets or sets the minimum length.
Declaration
public int MinLength { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The minimum length. |
Multiline
Gets or sets a value indicating whether this RadzenAutoComplete is multiline.
Declaration
public bool Multiline { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
OpenOnFocus
Gets or sets a value indicating whether popup should open on focus. Set to false
by default.
Declaration
public bool OpenOnFocus { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
PopupStyle
Gets or sets the Popup height.
Declaration
public string PopupStyle { get; set; }
Property Value
Type | Description |
---|---|
System.String | The number Popup height. |
Query
Gets the IQueryable.
Declaration
protected override IQueryable Query { get; }
Property Value
Type | Description |
---|---|
IQueryable | The IQueryable. |
Overrides
Template
Gets or sets the template.
Declaration
public RenderFragment<dynamic> Template { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment<System.Object> | The template. |
View
Gets the view - the Query with filtering applied.
Declaration
protected override IEnumerable View { get; }
Property Value
Type | Description |
---|---|
IEnumerable | The view. |
Overrides
Methods
Dispose()
Disposes this instance.
Declaration
public override void Dispose()
Overrides
FocusAsync()
Sets the focus on the input element.
Declaration
public override async ValueTask FocusAsync()
Returns
Type | Description |
---|---|
ValueTask |
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
OnAfterRenderAsync(Boolean)
Called on after render asynchronous.
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | firstRender | if set to |
Returns
Type | Description |
---|---|
Task | Task. |
Overrides
OnChange(ChangeEventArgs)
Handles the Change event.
Declaration
protected async System.Threading.Tasks.Task OnChange(ChangeEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ChangeEventArgs | args | The |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
OnFilterKeyPress(KeyboardEventArgs)
Handles the FilterKeyPress event.
Declaration
protected async Task OnFilterKeyPress(KeyboardEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
KeyboardEventArgs | args | The |
Returns
Type | Description |
---|---|
Task |
SetParametersAsync(ParameterView)
Set parameters as an asynchronous operation.
Declaration
public override async Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |