Class
TelerikComboBox<TItem, TValue>

The class for the Telerik ComboBox component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

TValue

Syntax:

cs-api-definition
public class TelerikComboBox<TItem, TValue> : ComboBoxBase<TItem, TValue>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IPopupContainer

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

Implements: IComponentIDisposableIHandleAfterRenderIHandleEventIPopupContainer

Inherited Members TelerikSelectBase<TItem, TValue>.OnParametersSetAsync()TelerikSelectBase<TItem, TValue>.OnInitializedAsync()TelerikSelectBase<TItem, TValue>.Dispose()TelerikSelectBase<TItem, TValue>.FocusAsync()TelerikSelectBase<TItem, TValue>.Open()TelerikSelectBase<TItem, TValue>.Close()TelerikSelectBase<TItem, TValue>.Refresh()TelerikSelectBase<TItem, TValue>.DebounceChangeValue(string)TelerikSelectBase<TItem, TValue>.CascadedEditContextTelerikSelectBase<TItem, TValue>.FloatingLabelTelerikSelectBase<TItem, TValue>.IdTelerikSelectBase<TItem, TValue>.ValueFieldTelerikSelectBase<TItem, TValue>.TextFieldTelerikSelectBase<TItem, TValue>.GroupFieldTelerikSelectBase<TItem, TValue>.HeaderTemplateTelerikSelectBase<TItem, TValue>.FooterTemplateTelerikSelectBase<TItem, TValue>.NoDataTemplateTelerikSelectBase<TItem, TValue>.WidthTelerikSelectBase<TItem, TValue>.FilterableTelerikSelectBase<TItem, TValue>.TitleTelerikSelectBase<TItem, TValue>.SubtitleTelerikSelectBase<TItem, TValue>.AriaLabelTelerikSelectBase<TItem, TValue>.AriaLabelledByTelerikSelectBase<TItem, TValue>.AriaDescribedByTelerikSelectBase<TItem, TValue>.ReadOnlyTelerikSelectBase<TItem, TValue>.InputModeTelerikSelectBase<TItem, TValue>.ScrollModeTelerikSelectBase<TItem, TValue>.ItemHeightTelerikSelectBase<TItem, TValue>.PageSizeTelerikSelectBase<TItem, TValue>.EnabledTelerikSelectBase<TItem, TValue>.ValueExpressionTelerikSelectBase<TItem, TValue>.ValueChangedTelerikSelectBase<TItem, TValue>.ValueTelerikSelectBase<TItem, TValue>.TabIndexTelerikSelectBase<TItem, TValue>.AdaptiveModeTelerikSelectBase<TItem, TValue>.OnChangeTelerikSelectBase<TItem, TValue>.OnBlurTelerikSelectBase<TItem, TValue>.FillModeTelerikSelectBase<TItem, TValue>.RoundedTelerikSelectBase<TItem, TValue>.SizeTelerikSelectBase<TItem, TValue>.ProcessingDataDataBoundComponent<TItem>.SetParametersAsync(ParameterView)DataBoundComponent<TItem>.OnParametersSetAsync()DataBoundComponent<TItem>.Dispose()DataBoundComponent<TItem>.Rebind()DataBoundComponent<TItem>.DataBaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()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.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)

Constructors

TelerikComboBox()

Declaration

cs-api-definition
public TelerikComboBox()

Properties

ComboBoxPrefixTemplate

Customizes the content displayed before the input text inside the ComboBox, perfect for adding contextual icons or visual cues. Use to add search icons, category indicators, status symbols, or any visual elements that help users understand the input's purpose. Example: Add a magnifying glass icon for search fields, country flags for location selectors, or user avatars for people pickers. The prefix appears inside the input area and automatically adapts to your theme styling and component size. Children: allows arbitrary content including icons, text, images, and interactive elements.

Declaration

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

Property Value

RenderFragment

ComboBoxSettings

Defines configuration settings for the ComboBox dropdown popup behavior, dimensions, and styling. Use to customize popup width, height, animations, and CSS classes for advanced layout control. Essential for responsive designs where the popup needs different sizing than the input element. Children: ComboBoxPopupSettings component with properties for Width, Height, Class, and animation settings.

Declaration

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

Property Value

RenderFragment

ComboBoxSuffixTemplate

Customizes the content displayed after the input text inside the ComboBox, ideal for action buttons or additional information. Use to add clear buttons, validation icons, action triggers, or supplementary information that relates to the current selection. Example: Add a "clear all" button, validation checkmarks, dropdown arrows, or status indicators. The suffix appears inside the input area and automatically adapts to your theme styling and component size. Children: allows arbitrary content including buttons, icons, badges, and interactive components.

Declaration

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

Property Value

RenderFragment

ItemTemplate

Customizes how each dropdown item appears by providing a template for rendering individual data items. Use to add rich content, formatting, icons, badges, or complex layouts to dropdown options. Example: Display user profiles with avatars and details, product listings with images and prices, or formatted text with highlighting. The template receives the data item as context, allowing access to all properties for conditional rendering and styling. Children: allows arbitrary content for each item including HTML elements, Blazor components, and data binding expressions.

Declaration

cs-api-definition
[Parameter]
public RenderFragment<TItem> ItemTemplate { get; set; }

Property Value

RenderFragment<TItem>

OnClose

Fires before the ComboBox dropdown closes, allowing you to cancel the operation or perform cleanup actions. Use for validation, saving state, updating related components, or implementing custom close behavior. Example: Validate selections, save draft changes, update other form fields, or prevent closing during incomplete operations. Set IsCancelled to true in the event handler to keep the dropdown open.

Declaration

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

Property Value

EventCallback<ComboBoxCloseEventArgs>

OnItemRender

Fires for each dropdown item during rendering, allowing dynamic CSS class assignment based on item data or state. Use to conditionally style items, highlight important options, indicate status, or provide visual categorization. Example: Highlight preferred items, mark disabled options, show selection status, or apply category-specific styling. Access the item data through the event arguments to make styling decisions based on item properties or business logic.

Declaration

cs-api-definition
[Parameter]
public Action<ComboBoxItemRenderEventArgs<TItem>> OnItemRender { get; set; }

Property Value

Action<ComboBoxItemRenderEventArgs<TItem>>

OnOpen

Fires before the ComboBox dropdown opens, allowing you to cancel the operation or perform setup actions. Use for validation, loading fresh data, preparing the UI, or implementing conditional access to the dropdown. Example: Validate user permissions, refresh item lists, log user interactions, or prevent opening under certain conditions. Set IsCancelled to true in the event handler to prevent the dropdown from opening.

Declaration

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

Property Value

EventCallback<ComboBoxOpenEventArgs>

OnRead

Fires when the ComboBox needs to load data, enabling server-side filtering, paging, and data operations for large datasets. Use this event to implement custom data loading logic, server-side filtering, or integrate with external data sources. Once you handle this event, you must implement all data source operations (filtering, sorting, paging) in your handler. Essential for virtual scrolling with large datasets - combine with ScrollMode set to Virtual. Example: Load data from APIs, databases, or services based on user input and filtering requirements.

Declaration

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

Property Value

EventCallback<ComboBoxReadEventArgs>

ShowPrefixSeparator

Controls whether a visual separator line appears between the prefix content and the main input area. When true, displays a subtle vertical line that helps distinguish the prefix from the input text for better visual clarity. Set to false for seamless integration when the prefix should blend naturally with the input content. Works in conjunction with ComboBoxPrefixTemplate to provide professional, polished input styling.

Declaration

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

Property Value

bool

ShowSuffixSeparator

Controls whether a visual separator line appears between the main input area and the suffix content. When true, displays a subtle vertical line that helps distinguish the suffix from the input text for better visual organization. Set to false for seamless integration when the suffix should blend naturally with the input content. Works in conjunction with ComboBoxSuffixTemplate to provide professional, polished input styling.

Declaration

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

Property Value

bool

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)