radcombo auto complete

4 posts, 0 answers
  1. susan
    susan avatar
    2 posts
    Member since:
    Oct 2010

    Posted 26 May 2011 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 May 2011 Link to this post

    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.
  3. susan
    susan avatar
    2 posts
    Member since:
    Oct 2010

    Posted 27 May 2011 Link to this post

    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
  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 01 Jun 2011 Link to this post

    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.

Back to Top