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
protected ComboBoxBase()
Methods
protected void OnItemSelect(ListItemSelectEventArgs args)
protected void SelectItemAndClose(ListDataItem item)
Properties
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.
[Parameter]
public bool AllowCustom { get; set; }
Time in ms between the last typed symbol and the firing of the internal oninput event. Default is 150ms.
[Parameter]
public int DebounceDelay { get; set; }
Defines the filter operator. Default value is StartsWith.
[Parameter]
public StringFilterOperator FilterOperator { get; set; }
The delay after which the loader in the suggestion list will be displayed.
[Parameter]
public int LoaderShowDelay { get; set; }
The hint that is shown if no item is selected.
[Parameter]
public string Placeholder { get; set; }
Defines whether to render a clear button in the ComboBox. Clear Button is displayed on hover when the ComboBox has value.
[Parameter]
public bool ShowClearButton { get; set; }
Defines the TextField of the Data. Default value: "Text".
[Parameter]
public override string TextField { get; set; }
Overrides:
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.
[Parameter]
public Func<TValue, Task<TItem>> ValueMapper { get; set; }