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

AutoCompleteBox timing / wrong results are shown

3 Answers 199 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 01 Jun 2015, 03:22 PM

I'm using the AutoCompleteBox with an Array datasource with about 1000 items. The minimum search limit is 3 characters.

When typing for example "JOHN" with a somewhat lower pace, the Postback fires as soon as the "H" is typed (third character, as expected).

If you continue typing the "N", another Postback fires.

However, the resulting drop down list is the result of the first query and shows items that do not match "JOHN". The results of the second Postback are discarded. The user must now add or remove characters from the search string to get the desired result.

 

It seems that there is a problem with this control, which causes subsequent Postbacks not to be handled correctly. It would also be nice if it would be possible to control the timing behaviour, for example to set a higher value for the time that must pass before a Postback fires.

regards,
Peter

3 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 04 Jun 2015, 07:03 AM
Hello,

We will research the issue where a second request is send before the first one has finised.

As for the timeout issue, the AutoCompleteBox exposes a property that you can use:
<script>
    function onClientLoad(sender) {
        // Set the delay so that the request
        // is sent 500 milliseconds after
        // the use stops writing
        sender.set_requestDelay(500);
    }
</script>
<telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteBox1"
    OnClientLoad="onClientLoad">
    <WebServiceSettings Method="GetItems" Path="WebService.asmx" />
</telerik:RadAutoCompleteBox>


Regards,
Bozhidar
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
0
Alan
Top achievements
Rank 1
answered on 18 Jan 2016, 08:14 AM
Any update ?
0
Bozhidar
Telerik team
answered on 18 Jan 2016, 08:28 AM
Hi,

We are still working on the issue. When we find a solution it will be included in our release notes:
http://www.telerik.com/support/whats-new/aspnet-ajax/release-history

Regards,
Bozhidar
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
AutoCompleteBox
Asked by
Peter
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Alan
Top achievements
Rank 1
Share this question
or