This is a migrated thread and some comments may be shown as answers.

[Solved] Type Ahead Feature for searching list

2 Answers 201 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 01 Dec 2008, 09:26 PM
Hello,

I was wondering if this feature exists for the ComboBox; for the list of ComboBox items, I was wondering if it was possible to be able to type items into the list, and have those items selected.  For instance, if the combo is a list of states, and I start typing A, it would select the first A, but as I type RK, it would select Arkansas, not jump down to Kentucky (which is the default functionality because typing the letter evaluates only the first letter).

Does that exist?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 02 Dec 2008, 09:59 AM

Hi Brian Mains,

You can achieve this functionality by setting the property, MarkFirstMatch to "true" of the RadComboBox.

ASPX:

<telerik:RadComboBox ID="RadComboBox1" Runat="server" MarkFirstMatch="true">  
    <Items> 
        <telerik:RadComboBoxItem runat="server" Text="Arkansas" Value="Arkansas" /> 
        <telerik:RadComboBoxItem runat="server" Text="RadComboBox" Value="RadComboBox" /> 
        <telerik:RadComboBoxItem runat="server" Text="Kentucky" Value="Kentucky" /> 
    </Items> 
</telerik:RadComboBox> 

Thanks,
Princy.
0
Brian Mains
Top achievements
Rank 1
answered on 02 Dec 2008, 06:19 PM
That was it.  Thanks.
Tags
ComboBox
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Brian Mains
Top achievements
Rank 1
Share this question
or