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


    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" />

    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
    Boyan Dimitrov avatar
    1968 posts

    Posted 24 Oct 2014 Link to this post


    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.

    Boyan Dimitrov

    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.

Back to Top