Manually triggering filtering pass

3 posts, 0 answers
  1. Tuukka
    Tuukka avatar
    1 posts
    Member since:
    Jan 2014

    Posted 29 Apr 2014 Link to this post

    Hi

    I run into a small issue when using the RadAutoCompleteBox in our Windows Phone 8 app. We use the WebServiceAutoCompleteProvider to fetch the suggestion items from server, but in some cases it seems that the server response might be a little bit too slow. This seems to end up in a situation that filtering pass is initialized for the last received suggestions list before the updated list is returned by the server. As this is quite a rare case I would not like to increase the FilterDelay above the one second it is now. Instead, I would like to trigger the filtering manually if there is a delay in getting the server response, but there does
    not seem to be a method for doing so. Is there some easy way to manually trigger filtering in this kind of case?

    Br, TT
  2. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 01 May 2014 Link to this post

    Hi,

    Unfortunately our colleagues are currently out of the office. They will get back to you as soon as possible.

    Sorry for any inconvenience caused.

    Regards,
    Ivaylo Gergov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 20 Aug 2014 Link to this post

    Hello,

    Sorry for the late response.

    I checked this scenario and there are two options. 
    1. If you'd like to initially show the partially fetched suggestions, you can call the WebServiceAutoCompleteProvider.LoadSuggestions(..) and when the suggestions are updated to update the AutoCompleteBox, you can just call again the WebServiceAutoCompleteProvider.LoadSuggestions(..) method and pass the updated collection.
    2. If you want to show the suggestions after the whole data is downloaded, you can wait untill it is available and then call the WebServiceAutoCompleteProvider.LoadSuggestions(..) just once.

    Please, let me know if this meets your requirements.


    Regards,
    Ivaylo Gergov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top