Class TelerikDropDownList<TItem, TValue>
The class for the DropDownList component.
Inheritance
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikDropDownList<TItem, TValue> : TelerikSelectBase<TItem, TValue>, IDisposable
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. |
Constructors
TelerikDropDownList()
Declaration
public TelerikDropDownList()
Properties
DefaultItem
The default item to be displayed. Marked as obsolete, please, use DefaultText instead.
Declaration
public TItem DefaultItem { get; set; }
Property Value
TItem
|
DefaultText
Creates a default item to be shown when no value is selected. The value is set to default(TValue).
Declaration
public string DefaultText { get; set; }
Property Value
System.String
|
TabIndex
Defines the tabindex of the DropDownList.
Declaration
public int TabIndex { get; set; }
Property Value
System.Int32
|
TextField
Defines the TextField of the Data. Default value: "Text".
Declaration
public override string TextField { get; set; }
Property Value
System.String
|
Overrides
ValueTemplate
Defines the value template of the DropDownList.
Declaration
public RenderFragment<TItem> ValueTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment<TItem>
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
Dispose()
Declaration
public override void Dispose()
Overrides
OnAfterRenderAsync(Boolean)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
System.Boolean
firstRender
|
Returns
System.Threading.Tasks.Task
|
Overrides
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
System.Threading.Tasks.Task
|