Hello there
I have a ComboBox control with lots of data, in order to find an entry quickly I would like to just type into the ComboBox which works fine.
But when using Templates, the following happens...
|
<SfComboBox TValue="string" TItem="EmployeeData" Placeholder="Select a customer" DataSource="@Data" AllowFiltering="true">
<ComboBoxTemplates TItem="EmployeeData">
<ItemTemplate>
<span><span class='name'>@((context as EmployeeData).FirstName)span><span class='country'>@((context as EmployeeData).Country)span>span>
ItemTemplate>
ComboBoxTemplates>
<ComboBoxFieldSettings Text="FirstName" Value="Country">ComboBoxFieldSettings>
SfComboBox> |
Hi Sevvandhi
I see, by allowing filtering it only shows entries which contain user input.
It behaves a little bit differently to a ComboBox without templates which scrolls to the appropriate entry and highlights it, which is a little bit weird.
But for my current use case, this solution will do just fine. So thank you!
Cheers,
Lazar