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

Autocomplete Busy when using remote data source

2 Answers 144 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Seven Spikes
Top achievements
Rank 1
Seven Spikes asked on 07 Mar 2012, 12:08 PM
Hi guys,

We use Autocomplete with a remote data source and filtering on the server.
As you know when the filtering is done on the server the data is retrieved by making calls to the server each time the clients type something in the input box.
There are cases when it takes several seconds for the results to be returned from the server and we want to indicate this to the clients and give them some visual hints that they should wait for the results to be returned by showing an ajax busy loader.
All is good but we can't find a way to know when the data source has made a request to the server for retrieving the data (also when the data is returned to the data source, so that we can remove the ajax busy loader).
Do you know about any event of the data source or the autocomplete itself that could fit for our needs?

Many thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 08 Mar 2012, 11:48 AM
Hello Seven Spikes,

 
You can wire the "requestStart" and "change" event of the DataSource. Thus you can show the your custom ajax loader on "requestStart" and hide it on "change".

Regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Erlend
Top achievements
Rank 2
answered on 21 May 2012, 01:28 PM
This seems to be a good idea on the initial load on the data source, but when you have a datasource with create/update/destroy implemented. This requeststart and change doesn't seem to fire as intended. 

Is there a way to show a show a gif wait animation while datasource is communicating with the server to prevent user input until completed. 
Tags
AutoComplete
Asked by
Seven Spikes
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Erlend
Top achievements
Rank 2
Share this question
or