AutoCompleteBox timing / wrong results are shown

4 posts, 0 answers
  1. Peter
    Peter avatar
    1 posts
    Member since:
    Apr 2012

    Posted 01 Jun 2015 Link to this post

    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

  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 04 Jun 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alan
    Alan avatar
    4 posts
    Member since:
    Jan 2016

    Posted 18 Jan Link to this post

    Any update ?
  5. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 18 Jan Link to this post

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