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

Handling auto-complete search on server side?

1 Answer 56 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
DH
Top achievements
Rank 1
DH asked on 10 Jun 2015, 11:52 PM

I'm having some trouble understanding how the datasource calls are handled on the server side. 

In this scenario i'd like to have the search box only request after either 3 letters are entered, or if the search button is pressed. I'm binding to my own datasource connecting to a BI layer. I don't quite understand how the onSearch event is fired both if the search is pressed, or if data changes in the box. What is the difference then when a user actually selects an item from the list? 

A code example would be helpful.

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 15 Jun 2015, 03:18 PM
Hello,

In order to define a minimum set of characters to be entered before a request of items is initiated the MinFilterLength property should be set. Regarding the OnSearch event more information could be found in the following help article from our online documentation.

Regards,
Dimitar Terziev
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
SearchBox
Asked by
DH
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or