ComboBox
Description
Usage
@namespace Gap.Blazor.Components
@using Gap.Blazor
@using System.Collections
@using Telerik.Blazor.Components
@inherits WMControlComponentBase
@if (this.comboBox.Visible)
{
<WMStyleBase model=@comboBox></WMStyleBase>
<div class="@comboBox.GetStringClasses()" @onkeydown="@keyDownHandler">
<TelerikRootComponent>
<TelerikComboBox TValue="string"
TItem="object"
Data="@this.items"
Enabled="@this.Enabled"
AllowCustom="true"
Filterable="true"
ValueField="text"
TextField="value"
Width="100%"
@bind-Value="@this.Value" @ref="elementRef" TabIndex=@TabIndex>
<NoDataTemplate>
<div>
<TelerikSvgIcon Icon="@SvgIcon.InfoCircle" Size="@ThemeConstants.SvgIcon.Size.Large" />
<br />
<br />
No items to display...
</div>
</NoDataTemplate>
</TelerikComboBox>
</TelerikRootComponent>
</div>
<style>
[email protected]() .k-animation-container {
top: @(comboBox.Height + "px") !important;
left: 0px !important;
}
[email protected]() .k-combobox {
height: @(comboBox.Height + "px");
font-size: inherit;
}
[email protected]() .k-list-item {
font-size: @comboBox.Font.GetFontSize();
}
</style>
}
Properties
Methods
Dynamic Rendering
Styles
Events
Last updated