AutoCompleteBox problem with Single Selection Mode and mouse click

2 posts, 0 answers
  1. Kenneth
    Kenneth avatar
    5 posts
    Member since:
    Jul 2013

    Posted 21 Oct 2014 Link to this post

    Hi,

    I have a very specific scenario when AutoCompleteBox does not work properly.

    <telerik:RadAutoCompleteBox ID="TextBoxAutoCompleteEmployerName" runat="server"  
        MaxResultCount="10" MinFilterLength="3" InputType="Text" AllowCustomEntry="True" >
       <TextSettings SelectionMode="Single" />
       <WebServiceSettings Method="GetEmployerByName" Path="Employer.ascx" />
    </telerik:RadAutoCompleteBox>

    Steps to reproduce:

    1. Open a page with an AutoCompleteBox
    2. Input a filter until this filter matches an item on your list (case sensitive here)
    3. Click on this item
    4. Perform any postback operation
    5. Note both AutoCompleteBox Text and Entries are empty in the code behind (although AutoCompleteBox was filled on the page itself)

    On step 3, if instead of clicking the list item, I press tab or enter key, then I have no problem.

    This is a really big problem! 

    Has anyone experienced this before?
    What did you do?
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 24 Oct 2014 Link to this post

    Hello,

    I was not able to replicate such problem with the RadAutoCompleteBox control. Please find attached a sample page that follows the provided code.

      1. Please type "Ani" in the input field so one item will be shown.
      2. Please select this item
      3. Click on the button "PostBack". It will initiate a post-back and the label control will print the RadAutoCompleteBox Text value in the Page_Load event handler.

    Regards,
    Boyan Dimitrov
    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. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top