ClassTelerikDropDownList<TItem, TValue>
The class for the DropDownList component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Type Parameters:
TItem
Type of the model if you cannot provide a Value.
TValue
Type of the Value if you cannot provide a reference to it.
Syntax:
public class TelerikDropDownList<TItem, TValue> : TelerikSelectBase<TItem, TValue>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IPopupContainer
Inheritance: objectComponentBaseBaseComponentDataBoundComponent<TItem>TelerikSelectBase<TItem, TValue>TelerikDropDownList<TItem, TValue>
Implements:
Inherited Members
Constructors
TelerikDropDownList()
Declaration
public TelerikDropDownList()
Properties
DefaultText
Creates a default item to be shown when no value is selected. The value is set to default(TValue).
Declaration
[Parameter]
public string DefaultText { get; set; }
Property Value
DropDownListSettings
Defines a renderfragment that contains all settings for the autocomplete. DropDownListPopupSettings.
Declaration
[Parameter]
public RenderFragment DropDownListSettings { get; set; }
Property Value
FilterDebounceDelay
Time in ms between the last typed symbol and the firing of the internal filter oninput event. Default is 150ms.
Declaration
[Parameter]
public int FilterDebounceDelay { get; set; }
Property Value
FilterOperator
Defines the filter operator. Default value is StringFilterOperator.StartsWith.
Declaration
[Parameter]
public StringFilterOperator FilterOperator { get; set; }
Property Value
FilterPlaceholder
The hint that is displayed in the filter input.
Declaration
[Parameter]
public string FilterPlaceholder { get; set; }
Property Value
ItemTemplate
Defines the item template of the list items.
Declaration
[Parameter]
public RenderFragment<TItem> ItemTemplate { get; set; }
Property Value
RenderFragment<TItem>
OnClose
Defines the OnClose Event which is fired before the suggestion list of the DropDownList is closed.
Declaration
[Parameter]
public EventCallback<DropDownListCloseEventArgs> OnClose { get; set; }
Property Value
OnItemRender
Fires each time an item in dropdown renders. Use the event to add a custom CSS class to each dropdown item based on its value.
Declaration
[Parameter]
public Action<DropDownListItemRenderEventArgs<TItem>> OnItemRender { get; set; }
Property Value
OnOpen
Defines the OnOpen Event which is fired before the suggestion list of the DropDownList is opened.
Declaration
[Parameter]
public EventCallback<DropDownListOpenEventArgs> OnOpen { get; set; }
Property Value
OnRead
Fires when the data source is read. Use this to attach your own filtering logic. Once attached, you must implement all such data source operations here, the Component will no longer perform them for you.
Declaration
[Parameter]
public EventCallback<DropDownListReadEventArgs> OnRead { get; set; }
Property Value
SelectedDataItem
Declaration
protected ListDataItem SelectedDataItem { get; set; }
Property Value
ListDataItem
TextField
Defines the TextField of the Data. Default value: "Text".
Declaration
[Parameter]
public override string TextField { get; set; }
Property Value
Overrides
ValueMapper
A callback function that returns an item that corresponds to the argument value. Used in virtual scrolling combined with OnRead to facilitate pre-selection of items that are not currently loaded.
ValueTemplate
Defines the value template of the DropDownList.
Declaration
[Parameter]
public RenderFragment<TItem> ValueTemplate { get; set; }
Property Value
RenderFragment<TItem>
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides