Autocomplete Busy when using remote data source

3 posts, 1 answers
  1. Seven Spikes
    Seven Spikes avatar
    6 posts
    Member since:
    Oct 2009

    Posted 07 Mar 2012 Link to this post

    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. Answer
    Georgi Krustev
    Georgi Krustev avatar
    3725 posts

    Posted 08 Mar 2012 Link to this post

    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".

    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!
  3. Erlend
    Erlend avatar
    11 posts
    Member since:
    Apr 2011

    Posted 21 May 2012 Link to this post

    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. 
Back to Top