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

autocompletebox problem

1 Answer 82 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
ahmed
Top achievements
Rank 1
ahmed asked on 10 Mar 2018, 12:46 PM

i have autocompletebox that is connected to a database to get autocomplete items

 

the problem is that i can't search with what i type unless i start with the the first letters of the value as an example :

hot tea

i have to type hot to find the value what i want is that i type tea or even 2 letters ea to find the value

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Mar 2018, 02:06 PM
Hello, Ahmed,

Thank you for writing.  
 
In order to enable autocomplete functionality with "contains" searching it is necessary to simply set the RadAutoCompleteBox.AutoCompleteMode property to AutoCompleteMode.Suggest
this.radAutoCompleteBox1.AutoCompleteDataSource = this.productsBindingSource;
this.radAutoCompleteBox1.AutoCompleteDisplayMember = "ProductName";
this.radAutoCompleteBox1.AutoCompleteMode = AutoCompleteMode.Suggest;




I hope this information helps. Should you have further questions I would be glad to help. 
Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
AutoCompleteBox
Asked by
ahmed
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or