New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Filter Does Not Work when You Tab to the Combobox

PROBLEM

When the Filter property is set and you tab to RadComboBox and start typing the dropdown is not opened thus you might think that the filtering is not working.

SOLUTION

The filtering is working, but to see the results you need to open the dropdown when the user starts typing. To do this simply subscribe to the OnClientKeyPressing event and open the dropdown:

<telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBox1" runat="server"
    Filter="Contains"
    OnClientKeyPressing="OnClientKeyPressing">
    <Items>
        <telerik:RadComboBoxItem Text="Item1" Value="1" />
        <telerik:RadComboBoxItem Text="Item2" Value="2" />
        <telerik:RadComboBoxItem Text="Item3" Value="3" />
    </Items>
</telerik:RadComboBox>
<script>
    function OnClientKeyPressing(sender, e) {
        if (!sender.get_dropDownVisible() && e.get_domEvent().keyCode != 9) {
            sender.showDropDown();
        }
    }
</script>           

See Also

In this article