menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AutoCompleteModel - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AutoCompleteModel

    Interface for a class AutoComplete.

    Inheritance
    System.Object
    AutoCompleteModel
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class AutoCompleteModel : Object

    Constructors

    AutoCompleteModel()

    Declaration
    public AutoCompleteModel()

    Properties

    ActionBegin

    Triggers before fetching data from the remote server.

    Declaration
    public ActionBeginEventArgs ActionBegin { get; set; }
    Property Value
    Type
    ActionBeginEventArgs

    ActionComplete

    Triggers after data is fetched successfully from the remote server.

    Declaration
    public ActionCompleteEventArgs ActionComplete { get; set; }
    Property Value
    Type
    ActionCompleteEventArgs

    ActionFailure

    Triggers when the data fetch request from the remote server fails.

    Declaration
    public EventCallback<object> ActionFailure { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    AllowCustom

    Gets or sets a value that specifies whether the component allows user-defined values that do not exist in the data source.

    Declaration
    public bool AllowCustom { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the component allows user-defined values that do not exist in the data source; otherwise, false.

    Autofill

    Gets or sets a value indicating whether to suggest the first matched item in the input when searching. No action is taken when no matches are found.

    Declaration
    public bool Autofill { get; set; }
    Property Value
    Type
    System.Boolean

    BeforeOpen

    Triggers when the popup before opens.

    Declaration
    public BeforeOpenEventArgs BeforeOpen { get; set; }
    Property Value
    Type
    BeforeOpenEventArgs

    Blur

    Triggers when focus moves out from the component.

    Declaration
    public EventCallback<object> Blur { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    Change

    Triggers when an item in a popup is selected or when the model value is changed by user.

    Use Change event to configure the cascading AutoComplete.

    Declaration
    public EventCallback<object> Change { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    Close

    Triggers when the popup is closed.

    Declaration
    public EventCallback<object> Close { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    Created

    Triggers when the component is created.

    Declaration
    public EventCallback<object> Created { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    CustomValueSpecifier

    Triggers on set a custom value.

    Declaration
    public EventCallback<object> CustomValueSpecifier { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    DataBound

    Gets or sets the DataBoundEvent arguments.

    Declaration
    public DataBoundEventArgs DataBound { get; set; }
    Property Value
    Type
    DataBoundEventArgs

    DebounceDelay

    Gets or sets the delay in milliseconds before filtering is performed after a user types in the input. This property only takes effect when the AllowFiltering property is set to true.

    Declaration
    public int DebounceDelay { get; set; }
    Property Value
    Type Description
    System.Int32

    The number of milliseconds to wait after user input before triggering filtering. The default value is 300.

    Destroyed

    Triggers when the component is destroyed.

    Declaration
    public EventCallback<object> Destroyed { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    EnableVirtualization

    Gets or sets a value indicating whether virtual scrolling is enabled or not. The Virtual Scrolling feature is used to display a large amount of data without buffering the entire load of a huge database records in the DropDowns. When scrolling, the datamanager request is sent to fetch some amount of data from the server dynamically.

    Declaration
    public bool EnableVirtualization { get; set; }
    Property Value
    Type
    System.Boolean

    Filtering

    Triggers on typing a character in the component.

    Declaration
    public EventCallback<object> Filtering { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    FilterType

    Gets or sets the filter type that the component needs to consider during search action.

    Declaration
    public FilterType FilterType { get; set; }
    Property Value
    Type Description
    FilterType

    The filter type to consider during search action.

    Focus

    Triggers when the component is focused.

    Declaration
    public EventCallback<object> Focus { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    Highlight

    Gets or sets a value that specifies whether to highlight the searched characters on the suggested list items.

    Declaration
    public bool Highlight { get; set; }
    Property Value
    Type Description
    System.Boolean

    true to highlight the searched characters on the suggested list items; otherwise, false.

    MinLength

    Gets or sets a value that specifies the minimum number of characters to be typed before the search action is performed.

    Declaration
    public int MinLength { get; set; }
    Property Value
    Type Description
    System.Int32

    The minimum number of characters to be typed before the search action is performed.

    Open

    Triggers when the popup opens.

    Declaration
    public EventCallback<object> Open { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    Select

    Triggers when an item in the popup is selected by the user either with mouse/tap or with keyboard navigation.

    Declaration
    public EventCallback<object> Select { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    ShowClearButton

    Gets or sets a value that specifies whether to show or hide the clear button.

    Declaration
    public bool ShowClearButton { get; set; }
    Property Value
    Type Description
    System.Boolean

    true to show the clear button; otherwise, false.

    Remarks

    When the clear button is clicked, the Value, Text, and Index properties are reset to null.

    ShowPopupButton

    Gets or sets a value that specifies whether to show or hide the popup button on the component.

    Declaration
    public bool ShowPopupButton { get; set; }
    Property Value
    Type Description
    System.Boolean

    true to show the popup button; otherwise, false.

    SuggestionCount

    Gets or sets the maximum number of list items to be displayed on the suggestion popup.

    Declaration
    public int SuggestionCount { get; set; }
    Property Value
    Type Description
    System.Int32

    The maximum number of list items to be displayed on the suggestion popup.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved