ClassComboBoxBase<TItem, TValue>
Definition
Namespace:Telerik.Blazor.Components.Common.Dropdowns
Assembly:Telerik.Blazor.dll
Type Parameters:
TItem
TValue
Syntax:
public abstract class ComboBoxBase<TItem, TValue> : TelerikSelectBase<TItem, TValue>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IPopupContainer
Inheritance: objectComponentBaseBaseComponentDataBoundComponent<TItem>TelerikSelectBase<TItem, TValue>ComboBoxBase<TItem, TValue>
Derived Classes:
Implements:
Inherited Members
Constructors
ComboBoxBase()
Declaration
protected ComboBoxBase()
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.
DebounceDelay
Time in ms between the last typed symbol and the firing of the internal oninput event. Default is 150ms.
FilterOperator
Defines the filter operator. Default value is StartsWith.
Declaration
[Parameter]
public StringFilterOperator FilterOperator { get; set; }
Property Value
LoaderShowDelay
The delay after which the loader in the suggestion list will be displayed.
Declaration
[Parameter]
public int LoaderShowDelay { get; set; }
Property Value
Placeholder
The hint that is shown if no item is selected.
Declaration
[Parameter]
public string Placeholder { get; set; }
Property Value
ShowClearButton
Defines whether to render a clear button in the ComboBox. Clear Button is displayed on hover when the ComboBox has value.
Declaration
[Parameter]
public bool ShowClearButton { get; set; }
Property Value
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 VirtualScrollingn combined with OnRead to facilitate pre-selection of items that are not currently loaded.
Methods
OnItemSelect(ListItemSelectEventArgs)
Declaration
protected void OnItemSelect(ListItemSelectEventArgs args)
Parameters
args
ListItemSelectEventArgs
SelectItemAndClose(ListDataItem)
Declaration
protected void SelectItemAndClose(ListDataItem item)
Parameters
item
ListDataItem