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

Start searching with minimum 2 characters

4 Answers 148 Views
AutocompleteBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paras
Top achievements
Rank 1
Paras asked on 21 Jun 2012, 05:32 PM
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?

4 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 22 Jun 2012, 07:32 AM
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.

Regards,
Deyan
the Telerik team

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

0
Vijay
Top achievements
Rank 1
answered on 22 Jun 2012, 06:25 PM
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
 
            }
 
or
 
if (a.StartsWith(txtAutoComplete.Text))
            {
                //Do Something Here
 
            }

Hope this should be useful.

Thanks and Regards,
Vijay
MVC Corp. 
0
Mhd. Hassan
Top achievements
Rank 1
answered on 16 Jun 2015, 05:13 PM

Hello,

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

 

 

0
Pavel R. Pavlov
Telerik team
answered on 19 Jun 2015, 08:53 AM
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.

Regards,
Pavel R. Pavlov
Telerik
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
Tags
AutocompleteBox
Asked by
Paras
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Vijay
Top achievements
Rank 1
Mhd. Hassan
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Share this question
or