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

Manually triggering filtering pass

2 Answers 39 Views
AutocompleteBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tuukka
Top achievements
Rank 1
Tuukka asked on 29 Apr 2014, 06:54 AM
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 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 01 May 2014, 02:33 PM
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.

 
0
Ivaylo Gergov
Telerik team
answered on 20 Aug 2014, 01:47 PM
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.

 
Tags
AutocompleteBox
Asked by
Tuukka
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or