Class TelerikComboBox<TItem, TValue>
The class for the Telerik ComboBox component.
Inheritance
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikComboBox<TItem, TValue> : TelerikSelectBase<TItem, TValue>, IDisposable
Type Parameters
TItem
|
TValue
|
Constructors
TelerikComboBox()
Declaration
public TelerikComboBox()
Properties
AllowCustom
Defines whether custom values to be allowed in the ComboBox. By defaut, the ComboBox dismisses values that do not appear in the supplied list of items. When true, ComboBox behaves as TextBox. Meaning that typeof(Value) should be string.
Declaration
public bool AllowCustom { get; set; }
Property Value
System.Boolean
|
ClearButton
Defines whether to render a clear button in the ComboBox. Clear Button is displayed on hover when the ComboBox has value.
Declaration
public bool ClearButton { get; set; }
Property Value
System.Boolean
|
Filterable
Defines whether data should be filtered on typing in the ComboBox. The data will be filtered based on the TextField.
Declaration
public bool Filterable { get; set; }
Property Value
System.Boolean
|
FilterOperator
Defines the filter operator. Default value is StringFilterOperator.StartsWidth.
Declaration
public StringFilterOperator FilterOperator { get; set; }
Property Value
StringFilterOperator
|
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
public EventCallback<ComboBoxReadEventArgs> OnRead { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<ComboBoxReadEventArgs>
|
Placeholder
The hint that is shown if no item is selected.
Declaration
public string Placeholder { get; set; }
Property Value
System.String
|
TextField
Defines the TextField of the Data. Default value: "Text".
Declaration
public override string TextField { get; set; }
Property Value
System.String
|
Overrides
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
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
|
Overrides
SelectItemAndClose(ListDataItem)
Declaration
protected void SelectItemAndClose(ListDataItem item)
Parameters
Telerik.Blazor.Components.Common.Dropdowns.ListDataItem
item
|