Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenDropDown<TValue>

    RadzenDropDown component.

    Inheritance
    System.Object
    RadzenComponent
    DataBoundFormComponent<TValue>
    DropDownBase<TValue>
    RadzenDropDown<TValue>
    Implements
    IDisposable
    IRadzenFormComponent
    Inherited Members
    DropDownBase<TValue>.VirtualizationOverscanCount
    DropDownBase<TValue>.Virtualize
    DropDownBase<TValue>.Count
    DropDownBase<TValue>.AllowVirtualization
    DropDownBase<TValue>.PageSize
    DropDownBase<TValue>.HasValue
    DropDownBase<TValue>.HeaderTemplate
    DropDownBase<TValue>.AllowFiltering
    DropDownBase<TValue>.FilterAsYouType
    DropDownBase<TValue>.AllowClear
    DropDownBase<TValue>.Multiple
    DropDownBase<TValue>.AllowSelectAll
    DropDownBase<TValue>.Template
    DropDownBase<TValue>.ValueProperty
    DropDownBase<TValue>.DisabledProperty
    DropDownBase<TValue>.RemoveChipTitle
    DropDownBase<TValue>.SearchAriaLabel
    DropDownBase<TValue>.EmptyAriaLabel
    DropDownBase<TValue>.SelectedItemChanged
    DropDownBase<TValue>.selectedItems
    DropDownBase<TValue>.selectedItem
    DropDownBase<TValue>.Reset()
    DropDownBase<TValue>.ClearAll()
    DropDownBase<TValue>.Data
    DropDownBase<TValue>.OnParametersSet()
    DropDownBase<TValue>.GetItemOrValueFromProperty(Object, String)
    DropDownBase<TValue>.OnDataChanged()
    DropDownBase<TValue>.PopupID
    DropDownBase<TValue>.SearchID
    DropDownBase<TValue>.OpenPopupScript()
    DropDownBase<TValue>.OpenPopupScriptFromParent()
    DropDownBase<TValue>.FilterDelay
    DropDownBase<TValue>.search
    DropDownBase<TValue>.list
    DropDownBase<TValue>.selectedIndex
    DropDownBase<TValue>.HandleKeyPress(Microsoft.AspNetCore.Components.Web.KeyboardEventArgs, Boolean, Nullable<Boolean>)
    DropDownBase<TValue>.OnFilterKeyPress(Microsoft.AspNetCore.Components.Web.KeyboardEventArgs)
    DropDownBase<TValue>.OnKeyPress(Microsoft.AspNetCore.Components.Web.KeyboardEventArgs, Nullable<Boolean>)
    DropDownBase<TValue>.OnFilter(ChangeEventArgs)
    DropDownBase<TValue>.OnInitialized()
    DropDownBase<TValue>.OnParametersSetAsync()
    DropDownBase<TValue>.OnChange(ChangeEventArgs)
    DropDownBase<TValue>.SelectedItem
    DropDownBase<TValue>.Separator
    DropDownBase<TValue>.Items
    DropDownBase<TValue>.View
    DropDownBase<TValue>.SelectItem(Object, Boolean)
    DropDownBase<TValue>.GetValue()
    DropDownBase<TValue>.SelectItemFromValue(Object)
    DropDownBase<TValue>.ItemComparer
    DataBoundFormComponent<TValue>.TabIndex
    DataBoundFormComponent<TValue>.FilterCaseSensitivity
    DataBoundFormComponent<TValue>.FilterOperator
    DataBoundFormComponent<TValue>.Name
    DataBoundFormComponent<TValue>.Placeholder
    DataBoundFormComponent<TValue>.Disabled
    DataBoundFormComponent<TValue>.Change
    DataBoundFormComponent<TValue>.LoadData
    DataBoundFormComponent<TValue>.Form
    DataBoundFormComponent<TValue>.Value
    DataBoundFormComponent<TValue>.ValueChanged
    DataBoundFormComponent<TValue>.IsBound
    DataBoundFormComponent<TValue>.TextProperty
    DataBoundFormComponent<TValue>.Query
    DataBoundFormComponent<TValue>.SearchText
    DataBoundFormComponent<TValue>.SearchTextChanged
    DataBoundFormComponent<TValue>._view
    DataBoundFormComponent<TValue>.EditContext
    DataBoundFormComponent<TValue>.FieldIdentifier
    DataBoundFormComponent<TValue>.ValueExpression
    DataBoundFormComponent<TValue>.GetClassList(String)
    DataBoundFormComponent<TValue>.FocusAsync()
    DataBoundFormComponent<TValue>.FormFieldContext
    DataBoundFormComponent<TValue>.CurrentPlaceholder
    DataBoundFormComponent<TValue>.OnContextMenu(MouseEventArgs)
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, Int32)
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.RaiseContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.CurrentStyle
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenDropDown<TValue> : DropDownBase<TValue>, IDisposable, IRadzenFormComponent
    Type Parameters
    Name Description
    TValue

    The type of the value.

    Examples
    <RadzenDropDown @bind-Value=@customerID TValue="string" Data=@customers TextProperty="CompanyName" ValueProperty="CustomerID" Change=@(args => Console.WriteLine($"Selected CustomerID: {args}")) />

    Properties

    Chips

    Gets or sets a value indicating whether the selected items will be displayed as chips. Set to false by default. Requires Multiple to be set to true.

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

    true to display the selected items as chips; otherwise, false.

    ClearSearchAfterSelection

    Gets or sets a value indicating whether search field need to be cleared after selection. Set to false by default.

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

    true if need to be cleared; otherwise, false.

    Close

    Callback for when a dropdown is closed.

    Declaration
    public EventCallback Close { get; set; }
    Property Value
    Type Description
    EventCallback

    EmptyTemplate

    Gets or sets the empty template.

    Declaration
    public RenderFragment EmptyTemplate { get; set; }
    Property Value
    Type Description
    RenderFragment

    The empty template.

    FilterAutoCompleteType

    Gets or Sets the filter autocomplete type.

    Declaration
    public AutoCompleteType FilterAutoCompleteType { get; set; }
    Property Value
    Type Description
    AutoCompleteType

    The filter autocomplete type. Default: Off

    FilterPlaceholder

    Gets or sets the filter placeholder.

    Declaration
    public string FilterPlaceholder { get; set; }
    Property Value
    Type Description
    System.String

    The filter placeholder.

    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.

    ItemRender

    Gets or sets the row render callback. Use it to set row attributes.

    Declaration
    public Action<DropDownItemRenderEventArgs<TValue>> ItemRender { get; set; }
    Property Value
    Type Description
    Action<DropDownItemRenderEventArgs<TValue>>

    The row render callback.

    MaxSelectedLabels

    Gets or sets the number of maximum selected labels.

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

    The number of maximum selected labels.

    Open

    Callback for when a dropdown is opened.

    Declaration
    public EventCallback Open { get; set; }
    Property Value
    Type Description
    EventCallback

    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

    true if popup should open on focus; otherwise, false.

    PopupStyle

    Gets or sets the Popup height.

    Declaration
    public string PopupStyle { get; set; }
    Property Value
    Type Description
    System.String

    The number Popup height.

    ReadOnly

    Gets or sets a value indicating whether is read only.

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

    true if is read only; otherwise, false.

    SelectAllText

    Gets or sets the select all text.

    Declaration
    public string SelectAllText { get; set; }
    Property Value
    Type Description
    System.String

    The select all text.

    SelectedItemsText

    Gets or sets the selected items text.

    Declaration
    public string SelectedItemsText { get; set; }
    Property Value
    Type Description
    System.String

    The selected items text.

    ValueTemplate

    Gets or sets the value template.

    Declaration
    public RenderFragment<dynamic> ValueTemplate { get; set; }
    Property Value
    Type Description
    RenderFragment<System.Object>

    The value template.

    Methods

    Dispose()

    Disposes this instance.

    Declaration
    public override void Dispose()
    Overrides
    Radzen.DropDownBase<TValue>.Dispose()

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected override string GetComponentCssClass()
    Returns
    Type Description
    System.String
    Overrides
    RadzenComponent.GetComponentCssClass()

    OnAfterRenderAsync(Boolean)

    Called when [after render asynchronous].

    Declaration
    protected override async Task OnAfterRenderAsync(bool firstRender)
    Parameters
    Type Name Description
    System.Boolean firstRender

    if set to true [first render].

    Returns
    Type Description
    Task

    Task.

    Overrides
    Radzen.DropDownBase<TValue>.OnAfterRenderAsync(System.Boolean)

    OnClose()

    Called when popup is closed.

    Declaration
    public async Task OnClose()
    Returns
    Type Description
    Task

    OnSelectItem(Object, Boolean)

    Called when item is selected.

    Declaration
    protected override async Task OnSelectItem(object item, bool isFromKey = false)
    Parameters
    Type Name Description
    System.Object item

    The item.

    System.Boolean isFromKey

    if set to true [is from key].

    Returns
    Type Description
    Task
    Overrides
    Radzen.DropDownBase<TValue>.OnSelectItem(System.Object, System.Boolean)

    OpenPopup(String, Boolean, Boolean)

    Opens the popup.

    Declaration
    protected override async Task OpenPopup(string key = "ArrowDown", bool isFilter = false, bool isFromClick = false)
    Parameters
    Type Name Description
    System.String key

    The key.

    System.Boolean isFilter

    if set to true [is filter].

    System.Boolean isFromClick

    if set to true [is from click].

    Returns
    Type Description
    Task
    Overrides
    Radzen.DropDownBase<TValue>.OpenPopup(System.String, System.Boolean, System.Boolean)

    SelectAll()

    Selects all.

    Declaration
    protected override Task SelectAll()
    Returns
    Type Description
    Task
    Overrides
    Radzen.DropDownBase<TValue>.SelectAll()

    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.

    Overrides
    Radzen.DropDownBase<TValue>.SetParametersAsync(ParameterView)

    Implements

    IDisposable
    IRadzenFormComponent

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT