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

Type slowly and get the wrong results / delay issue / handling of requests

1 Answer 14 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 2
Matt asked on 14 May 2015, 08:41 AM

As I understand the control, you type a search term and requests are fired with the queried search term grouped by the speed you type, i.e. type fast and you get one request for the whole term or type slowly and get one request for each character.

If you type really fast, there is no issue. And if you type really slowly allowing the request to complete and update the results on screen before typing the next character, there is also no issue. However, type like you only use one finger (allowing a request to start but not complete before you type the next character) and we have problems. It would appear that only the first request fired is respected in the results and it will not update again unless you type another character, i,e, type 1...5...0 and only see the results for '1', then type 0 and get the results for '1500', what happened to the results for '150'?

I have been through the documentation and forums and this appears to have been an issue for sometime, below are a couple of the closest forum posts - from 2013!

  • http://www.telerik.com/forums/abort-previous-requests-on-keypress
  • http://www.telerik.com/forums/webservicesettings-delay-issue-handling-of-requests-in-order

Was this issue ever resolved?​

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 15 May 2015, 05:46 AM
Hi,

The issue you observe is caused by the interaction request delay that we add in order to get the results correctly. We have made a lot of testing and it is set to 250 milliseconds by default. Yet in custom cases as the one that you described if the request is a little bit slower or faster this delay may need update according to the scenario. That is why we recommend setting the _requestDelay to a different value according to your case as my colleague explained here.

Hope this will explain the issue and help you solve it.

Regards,
Plamen
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
Matt
Top achievements
Rank 2
Answers by
Plamen
Telerik team
Share this question
or