Base class of components that display a list of items.
DataBoundFormComponent<T>.GetClassList
DataBoundFormComponent<T>.FocusAsync
DataBoundFormComponent<T>.OnContextMenu
DataBoundFormComponent<T>.TabIndex
DataBoundFormComponent<T>.FilterCaseSensitivity
DataBoundFormComponent<T>.FilterOperator
DataBoundFormComponent<T>.Name
DataBoundFormComponent<T>.Placeholder
DataBoundFormComponent<T>.Disabled
DataBoundFormComponent<T>.Change
DataBoundFormComponent<T>.LoadData
DataBoundFormComponent<T>.Form
DataBoundFormComponent<T>.Value
DataBoundFormComponent<T>.ValueChanged
DataBoundFormComponent<T>.IsBound
DataBoundFormComponent<T>.TextProperty
DataBoundFormComponent<T>.Query
DataBoundFormComponent<T>.SearchText
DataBoundFormComponent<T>.SearchTextChanged
DataBoundFormComponent<T>.EditContext
DataBoundFormComponent<T>.FieldIdentifier
DataBoundFormComponent<T>.ValueExpression
DataBoundFormComponent<T>.FormFieldContext
DataBoundFormComponent<T>.CurrentPlaceholder
DataBoundFormComponent<T>._view
RadzenComponent.GetComponentCssClass
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.BuildRenderTree
ComponentBase.OnInitializedAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public class DropDownBase<T> : DataBoundFormComponent<T>, IComponent, IHandleEvent, IHandleAfterRender, IRadzenFormComponent| Name | Description |
|---|---|
| T |
Base class of components that display a list of items.
public DropDownBase<T>()Gets or sets a value indicating whether the user can clear the value. Set to false by default.
public bool AllowClear { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether the user can clear the value. Set to false by default. |
Gets or sets a value indicating whether filtering is allowed. Set to false by default.
public bool AllowFiltering { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether filtering is allowed. Set to false by default. |
Gets or sets a value indicating whether the user can select all values in multiple selection. Set to true by default.
public bool AllowSelectAll { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether the user can select all values in multiple selection. Set to true by default. |
Specifies wether virtualization is enabled. Set to false by default.
public bool AllowVirtualization { get; set; }
| Type | Description |
|---|---|
| bool | Specifies wether virtualization is enabled. Set to false by default. |
Gets or sets the clear button aria label text.
public string ClearAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the clear button aria label text. |
Specifies the total number of items in the data source.
public int Count { get; set; }
| Type | Description |
|---|---|
| int | Specifies the total number of items in the data source. |
Gets or sets the data.
public Collections.IEnumerable Data { get; set; }
| Type | Description |
|---|---|
| Collections.IEnumerable | Gets or sets the data. |
Gets or sets the disabled property.
public string DisabledProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the disabled property. |
Gets or sets the empty value aria label text.
public string EmptyAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the empty value aria label text. |
Gets or sets a value indicating whether filtering is allowed as you type. Set to true by default.
public bool FilterAsYouType { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether filtering is allowed as you type. Set to true by default. |
Gets or sets the filter delay.
public int FilterDelay { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the filter delay. |
Gets or sets the header template.
public RenderFragment HeaderTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the header template. |
For lists of objects, an IEqualityComparer to control how selected items are determined
public IEqualityComparer<object> ItemComparer { get; set; }
| Type | Description |
|---|---|
| IEqualityComparer<object> | For lists of objects, an IEqualityComparer to control how selected items are determined |
Gets the items.
protected IEnumerable<object> Items { get; }
| Type | Description |
|---|---|
| IEnumerable<object> | Gets the items. |
Gets the listbox identifier.
protected string ListId { get; }
| Type | Description |
|---|---|
| string | Gets the listbox identifier. |
Gets or sets a value indicating whether this DropDownBase<T> is multiple.
public bool Multiple { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether this DropDownBase<T> is multiple. |
Specifies the default page size. Set to 5 by default.
public int PageSize { get; set; }
| Type | Description |
|---|---|
| int | Specifies the default page size. Set to 5 by default. |
Gets the popup identifier.
protected string PopupID { get; }
| Type | Description |
|---|---|
| string | Gets the popup identifier. |
Gets or sets the remove chip button title.
public string RemoveChipTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the remove chip button title. |
Gets or sets a value indicating the selected index should reset to the top item when filtering, resulting in a down arrow action will start moving from the top.
public bool ResetSelectedIndexOnFilter { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating the selected index should reset to the top item when filtering, resulting in a down arrow action will start moving from the top. |
Gets or sets the search aria label text.
public string SearchAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the search aria label text. |
Gets the search identifier.
public string SearchID { get; }
| Type | Description |
|---|---|
| string | Gets the search identifier. |
Gets or sets the selected item.
public object SelectedItem { get; set; }
| Type | Description |
|---|---|
| object | Gets or sets the selected item. |
Gets or sets the selected item changed.
public EventCallback<object> SelectedItemChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<object> | Gets or sets the selected item changed. |
Gets or sets the item separator for Multiple dropdown.
public string Separator { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the item separator for Multiple dropdown. |
Gets or sets the template.
public RenderFragment<object> Template { get; set; }
| Type | Description |
|---|---|
| RenderFragment<object> | Gets or sets the template. |
Gets or sets the value property.
public string ValueProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the value property. |
Gets the view.
protected Collections.IEnumerable View { get; }
| Type | Description |
|---|---|
| Collections.IEnumerable | Gets the view. |
Gets or sets a value that determines how many additional items will be rendered before and after the visible region. This help to reduce the frequency of rendering during scrolling. However, higher values mean that more elements will be present in the page.
public int VirtualizationOverscanCount { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets a value that determines how many additional items will be rendered before and after the visible region. This help to reduce the frequency of rendering during scrolling. However, higher values mean that more elements will be present in the page. |
The Virtualize instance.
public Virtualization.Virtualize<object> Virtualize { get; }
| Type | Description |
|---|---|
| Virtualization.Virtualize<object> | The Virtualize instance. |
Gets the item or value from property.
public virtual object GetItemOrValueFromProperty(object item, string property)
| Type | Name | Description |
|---|---|---|
| object | item | The item. |
| string | property | The property. |
| Type | Description |
|---|---|
| object | System.Object. |
Handles the key press.
protected virtual Task HandleKeyPress(KeyboardEventArgs args, bool isFilter, bool? shouldSelectOnChange)
| Type | Name | Description |
|---|---|---|
| KeyboardEventArgs | args | The KeyboardEventArgs instance containing the event data. |
| bool | isFilter | if set to true [is filter]. |
| bool? | shouldSelectOnChange | Should select item on item change with keyboard. |
| Type | Description |
|---|---|
| Task |
Called when [after render asynchronous].
protected override Task OnAfterRenderAsync(bool firstRender)
| Type | Name | Description |
|---|---|---|
| bool | firstRender | if set to true [first render]. |
| Type | Description |
|---|---|
| Task | Task. |
Handles the Change event.
protected void OnChange(ChangeEventArgs args)
| Type | Name | Description |
|---|---|---|
| ChangeEventArgs | args | The ChangeEventArgs instance containing the event data. |
Handles the FilterKeyPress event.
protected virtual Task OnFilter(ChangeEventArgs args)
| Type | Name | Description |
|---|---|---|
| ChangeEventArgs | args | The KeyboardEventArgs instance containing the event data. |
| Type | Description |
|---|---|
| Task |
Handles filter input changes (e.g. paste).
protected virtual Task OnFilterInput(ChangeEventArgs args)
| Type | Name | Description |
|---|---|---|
| ChangeEventArgs | args | The ChangeEventArgs instance containing the event data. |
| Type | Description |
|---|---|
| Task |
Handles the FilterKeyPress event.
protected virtual Task OnFilterKeyPress(KeyboardEventArgs args)
| Type | Name | Description |
|---|---|---|
| KeyboardEventArgs | args | The KeyboardEventArgs instance containing the event data. |
| Type | Description |
|---|---|
| Task |
Handles the KeyPress event.
protected virtual Task OnKeyPress(KeyboardEventArgs args, bool? shouldSelectOnChange)
| Type | Name | Description |
|---|---|---|
| KeyboardEventArgs | args | The KeyboardEventArgs instance containing the event data. |
| bool? | shouldSelectOnChange | Should select item on item change with keyboard. |
| Type | Description |
|---|---|
| Task |
Called when [parameters set asynchronous].
protected override Task OnParametersSetAsync()
| Type | Description |
|---|---|
| Task | Task. |
Handles keyboard activation for the select-all action.
protected Task OnSelectAllKeyDown(KeyboardEventArgs args)
| Type | Name | Description |
|---|---|---|
| KeyboardEventArgs | args | The KeyboardEventArgs instance containing the event data. |
| Type | Description |
|---|---|
| Task |
Called when [select item].
protected virtual Task OnSelectItem(object item, bool isFromKey)
| Type | Name | Description |
|---|---|---|
| object | item | The item. |
| bool | isFromKey | if set to true [is from key]. |
| Type | Description |
|---|---|
| Task |
Opens the popup script.
protected virtual Task OpenPopup(string key, bool isFilter, bool isFromClick)
| Type | Name | Description |
|---|---|---|
| string | key | |
| bool | isFilter | |
| bool | isFromClick |
| Type | Description |
|---|---|
| Task | System.String. |
Opens the popup script.
protected string OpenPopupScript()
| Type | Description |
|---|---|
| string | System.String. |
Opens the popup script from parent.
protected string OpenPopupScriptFromParent()
| Type | Description |
|---|---|
| string | System.String. |
Selects all.
protected virtual Task SelectAll()
| Type | Description |
|---|---|
| Task |
Selects the item internal.
public Task SelectItem(object item, bool raiseChange)
| Type | Name | Description |
|---|---|---|
| object | item | The item. |
| bool | raiseChange | if set to true [raise change]. |
| Type | Description |
|---|---|
| Task |
Selects the item from value.
protected virtual void SelectItemFromValue(object value)
| Type | Name | Description |
|---|---|---|
| object | value | The value. |
Set parameters as an asynchronous operation.
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters | The parameters. |
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |