Start searching with minimum 2 characters

Thread is closed for posting
5 posts, 0 answers
  1. Paras
    Paras avatar
    11 posts
    Member since:
    May 2011

    Posted 21 Jun 2012 Link to this post

    How do I start the search in my data source only after at least 2 characters have been entered? I do not want to search only if 1 character is entered by the user.

    Any hints?
  2. Deyan
    Deyan avatar
    2147 posts

    Posted 22 Jun 2012 Link to this post

    Hello Paras,

    Thanks for writing.

    RadAutoCompleteBox starts a filtering operation upon each keystroke that changes the input. Currently there is no possibility to change that but we can consider extending the control to allow it.

    We will log this into our TODO list for future releases.

    Let me know if you have further feedback or need assistance.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Vijay
    Vijay avatar
    29 posts
    Member since:
    Nov 2011

    Posted 22 Jun 2012 Link to this post

    Hello Paras,

        When you requesting from any external data source... As of now, the control current release doesn't have a minimum prefix length type of a property to filter out the data. Alternatively  can make try out with some LINQ queries or try to specific some conditions as showing below

    if (a.Contains(txtAutoComplete.Text))
                    //Do Something Here
    if (a.StartsWith(txtAutoComplete.Text))
                    //Do Something Here

    Hope this should be useful.

    Thanks and Regards,
    MVC Corp. 
  4. Mhd. Hassan
    Mhd. Hassan avatar
    1 posts
    Member since:
    Jun 2015

    Posted 16 Jun 2015 Link to this post


    Please I have a question,

    How can I change filter method used by radAutoCompleteBox

    For example: I want to search in control with column "Code" startsWith method And column "Name" Contains method

    Thanks in advance



  5. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1240 posts

    Posted 19 Jun 2015 Link to this post

    Hi Hassan,

    I would like to turn your attention to the fact that you have reached our WindowdPhone 7 forum. Also this particular thread is quite old. Last post was made back in 2012. I believe that you are using our WindowsPhone 8 suite.

    If this is correct I would like to tell you about the RadAutoCompleteBox.AutoCompleteMode property. It is a dependency property which supports bindings. This means that you are able to bind to it and change the behavior of the control at runtime. In addition to that property the control also exposes FilterKeyPath. It also is a dependency property and can be bound to property exposed by your view model.

    Based on these two properties you will be able to completely control the behavior of the control. Please give this suggestion a try and let us know if you need any further assistance.

    Pavel R. Pavlov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top