radDropDownList shows list twice

4 posts, 1 answers
  1. Terry
    Terry avatar
    4 posts
    Member since:
    Mar 2013

    Posted 10 Aug Link to this post

    This issue can be seen in the Telerik Demo Application - UI for WinForms.  In the list at the left, select "DropDown & List".  From the DropDownList group of demos, select "Auto complete" (the one with the list of countries and their flags).  When the list is first displayed the dropdown list is opened and focus is in the keyin field.  Key in the letter 'C'.  You will see the list of countries that begin with 'C' over the original list of all countries.  See the attached image.

    Is this a defect?  Is there a way to work around the issue?

  2. Answer
    Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 15 Aug Link to this post

    Hello Terry,

    Thank you for contacting us. 

    The observed case is an expected behavior because the ShowDropDown method is called right after the Focus method. If you want to prevent this behavior, you can use the code snippet below and hide the RadDropDownList`s popup: 
    //subscribe to the PopupOpening event of the auto complete
    this.radDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.PopupOpening += DropDownList_PopupOpening;
         
    //close the RadDropDownList`s popup
    void DropDownList_PopupOpening(object sender, CancelEventArgs e)
    {
        this.radDropDownList1.CloseDropDown();
    }

    As an attachment, you can find a sample demo demonstrating the suggested solution. 

    Hope this will help you. Let me know if you have any other questions.

    Regards,
    Ralitsa
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Terry
    Terry avatar
    4 posts
    Member since:
    Mar 2013

    Posted 18 Aug Link to this post

    I marked Ralitsa's post as the answer, because it works with only a minor side-effect, but we are baffled as to why the RadDropDownList has separate popups for the down arrow and for the AutoCompleteSuggest.  This allows two different popups to be visible at the same time which is confusing and unattractive.
  5. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 23 Aug Link to this post

    Hi Terry,

    Thank you for sharing your experience. 

    The observed behavior with overlapped popup is by design. For reference, standard Microsoft`s ComboBox control has the same behavior. However, we have already logged the same request in our Feedback Portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following page: FIX. RadDropDownList - the control popup is not closed automatically when the auto-complete popup is shown, hence both popups overlap

    Please do not hesitate to contact us if you have any additional questions.

    Regards,
    Ralitsa
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top