Class
TelerikSelectBase<TItem, TValue>

Definition

Namespace:Telerik.Blazor.Components.Common

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

TValue

Syntax:

cs-api-definition
public abstract class TelerikSelectBase<TItem, TValue> : DataBoundComponent<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IPopupContainer

Inheritance: objectComponentBaseBaseComponentDataBoundComponent<TItem>TelerikSelectBase<TItem, TValue>

Derived Classes: TelerikAutoComplete<TItem>TelerikDropDownList<TItem, TValue>TelerikMultiSelect<TItem, TValue>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEventIPopupContainer

Inherited Members DataBoundComponent<TItem>.SetParametersAsync(ParameterView)DataBoundComponent<TItem>.Rebind()DataBoundComponent<TItem>.DataBaseComponent.ShouldRender()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)

Constructors

TelerikSelectBase()

Declaration

cs-api-definition
protected TelerikSelectBase()

Properties

AdaptiveMode

Defines if the component will adapt and automatically change its rendering based on the current screen size. Default value is None.

Declaration

cs-api-definition
[Parameter]
public AdaptiveMode AdaptiveMode { get; set; }

Property Value

AdaptiveMode

AriaDescribedBy

Defines the aria-describedby attribute for the component.

Declaration

cs-api-definition
[Parameter]
public virtual string AriaDescribedBy { get; set; }

Property Value

string

AriaLabel

Describe the aria-label attribute for the component.

Declaration

cs-api-definition
[Parameter]
public string AriaLabel { get; set; }

Property Value

string

AriaLabelledBy

Describe the aria-labelledby attribute for the component.

Declaration

cs-api-definition
[Parameter]
public string AriaLabelledBy { get; set; }

Property Value

string

CascadedEditContext

Declaration

cs-api-definition
[CascadingParameter]
public EditContext CascadedEditContext { get; set; }

Property Value

EditContext

Enabled

Specifies whether the Component is enabled.

Declaration

cs-api-definition
[Parameter]
public bool Enabled { get; set; }

Property Value

bool

FillMode

Specifies the fill mode of the select. Default value is Solid.

Declaration

cs-api-definition
[Parameter]
public string FillMode { get; set; }

Property Value

string

Filterable

Defines whether data should be filtered on typing in the component. The data will be filtered based on the TextField.

Declaration

cs-api-definition
[Parameter]
public bool Filterable { get; set; }

Property Value

bool

FloatingLabel

Declaration

cs-api-definition
[CascadingParameter]
public TelerikFloatingLabel FloatingLabel { get; set; }

Property Value

TelerikFloatingLabel

FooterTemplate

Defines the footer of the suggestion list.

Declaration

cs-api-definition
[Parameter]
public RenderFragment FooterTemplate { get; set; }

Property Value

RenderFragment

GroupField

Defines the field by which to group the Data.

Declaration

cs-api-definition
[Parameter]
public string GroupField { get; set; }

Property Value

string

HeaderTemplate

Defines the header of suggestion list.

Declaration

cs-api-definition
[Parameter]
public RenderFragment HeaderTemplate { get; set; }

Property Value

RenderFragment

Id

Defines the id of the Component.

Declaration

cs-api-definition
[Parameter]
public string Id { get; set; }

Property Value

string

ItemHeight

Defines the height of each item in the suggestion list. Accepts a number and is applied as pixels.

Declaration

cs-api-definition
[Parameter]
public decimal ItemHeight { get; set; }

Property Value

decimal

NoDataTemplate

Defines the content of the suggestion list when there is no data.

Declaration

cs-api-definition
[Parameter]
public RenderFragment NoDataTemplate { get; set; }

Property Value

RenderFragment

OnBlur

Declaration

cs-api-definition
[Parameter]
public EventCallback OnBlur { get; set; }

Property Value

EventCallback

OnChange

Specifies the callback that's called when the current value is committed (confirmed) by the user - either through the Enter key, or when the Component loses focus.

Declaration

cs-api-definition
[Parameter]
public EventCallback<object> OnChange { get; set; }

Property Value

EventCallback<object>

PageSize

Defines the page size of the component for virtual scrolling. Requires ScrollMode="DropDownScrollMode.Virtual".

Declaration

cs-api-definition
[Parameter]
public int PageSize { get; set; }

Property Value

int

ProcessingData

Declaration

cs-api-definition
protected bool ProcessingData { get; }

Property Value

bool

ReadOnly

The parameter is used to specify if the input field should be read-only. When set to true, the input becomes non-editable.

Declaration

cs-api-definition
[Parameter]
public bool ReadOnly { get; set; }

Property Value

bool

Rounded

Specifies the rounded css value of the select. Default value is Medium.

Declaration

cs-api-definition
[Parameter]
public string Rounded { get; set; }

Property Value

string

ScrollMode

Defines scrolling mode of the Component. Possible values are Scrollable and Virtual.

Declaration

cs-api-definition
[Parameter]
public DropDownScrollMode ScrollMode { get; set; }

Property Value

DropDownScrollMode

Size

Specifies the size of the select. Default value is Medium.

Declaration

cs-api-definition
[Parameter]
public string Size { get; set; }

Property Value

string

Subtitle

Defines the subtitle text rendered in the header of the popup. Applicable only when Auto is set.

Declaration

cs-api-definition
[Parameter]
public string Subtitle { get; set; }

Property Value

string

TabIndex

The TabIndex of the component.

Declaration

cs-api-definition
[Parameter]
public int? TabIndex { get; set; }

Property Value

int?

TextField

Declaration

cs-api-definition
public virtual string TextField { get; set; }

Property Value

string

Title

Defines the title text rendered in the header of the popup. Applicable only when Auto is set.

Declaration

cs-api-definition
[Parameter]
public string Title { get; set; }

Property Value

string

Value

Specifies the value of the input. Used with two-way binding.

Declaration

cs-api-definition
[Parameter]
public TValue Value { get; set; }

Property Value

TValue

ValueChanged

Specifies the callback that's called when the value changes.

Declaration

cs-api-definition
[Parameter]
public EventCallback<TValue> ValueChanged { get; set; }

Property Value

EventCallback<TValue>

ValueExpression

Specifies the expression that identifies the bound value.

Declaration

cs-api-definition
[Parameter]
public Expression<Func<TValue>> ValueExpression { get; set; }

Property Value

Expression<Func<TValue>>

ValueField

Defines the ValueField of the Data. Default value: "Value".

Declaration

cs-api-definition
[Parameter]
public string ValueField { get; set; }

Property Value

string

Width

Declaration

cs-api-definition
[Parameter]
public string Width { get; set; }

Property Value

string

Methods

Close()

Closes the suggestion list of the component.

Declaration

cs-api-definition
public void Close()

DebounceChangeValue(string)

Declaration

cs-api-definition
protected virtual void DebounceChangeValue(string value)

Parameters

value

string

Dispose()

Declaration

cs-api-definition
public override void Dispose()

Overrides DataBoundComponent<TItem>.Dispose()

FocusAsync()

Moves focus to the component.

Declaration

cs-api-definition
public Task FocusAsync()

Returns

Task

OnInitializedAsync()

Declaration

cs-api-definition
protected override Task OnInitializedAsync()

Returns

Task

Overrides BaseComponent.OnInitializedAsync()

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides DataBoundComponent<TItem>.OnParametersSetAsync()

Open()

Opens the suggestion list of the component.

Declaration

cs-api-definition
public void Open()

Refresh()

Re-renders the component.

Declaration

cs-api-definition
public void Refresh()