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

radcombo auto complete

3 Answers 60 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
susan
Top achievements
Rank 1
susan asked on 26 May 2011, 08:03 PM
Hi,  By typing in starting letters, radcombo can auto complete selection for first match.  Is there any way to do auto complete for non starting letters ? For example:    If the dropdown list options are  "red apple"  "green apple" "red grape" "green grape".   user type in "red" and press Tab,  the "red apple"  will be auto selected.   Is there any way to auto select "red apple" by typing in "apple" ?

Thanks

-susan

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 May 2011, 05:15 AM
Hello Susan,

How about setting the property filter="Contains" to the RadComboBox.
C#:
<telerik:RadComboBox Label="hai" ID="RadComboBox1" AutoPostBack="false"  AllowCustomText="true" Filter="Contains"
            EnableLoadOnDemand="true"  runat="server">
            <Items>
                <telerik:RadComboBoxItem runat="server" Text="red apple"/>
                <telerik:RadComboBoxItem runat="server" Text="green apple"  />
                <telerik:RadComboBoxItem runat="server" Text="red grape"  />
                <telerik:RadComboBoxItem runat="server" Text="green grape" />
            </Items>
</telerik:RadComboBox>

Thanks,
Shinu.
0
susan
Top achievements
Rank 1
answered on 27 May 2011, 04:35 PM
Hi Shinu, Thanks for reply.  Tried with filter="Contains", does not work. Indeed, with or without the filter, radcombo can always narrow down the option list, but when press tab key, it cannot auto select the first option if filter="Contains".
Any idea?
Thanks
-susan
0
Dimitar Terziev
Telerik team
answered on 01 Jun 2011, 04:38 PM
Hello Susan,

As you have already noticed the autocomplete functionality is working, when you type the starting letters of particular text.

What you want to achieve is not supported by the autocomplete functionality.

Best wishes,
Dimitar Terziev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ComboBox
Asked by
susan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
susan
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or