Dropdown not dropping down beneath combo box

8 posts, 0 answers
  1. Richard Haber
    Richard Haber avatar
    6 posts
    Member since:
    Jan 2005

    Posted 25 Sep 2007 Link to this post

    I am handling the Entered event for the combobox and calling its ShowDropDown() method.  Now, when I click on the combobox's dropdown button, the dropdown list is offest to the right by a significant amount.  If I collapse and expand it again, it is correct.  Move to another control and then drop it down again, and the same odd behavior again.

    Any ideas of where to look for the cause of this?
  2. Georgi
    Admin
    Georgi avatar
    212 posts

    Posted 27 Sep 2007 Link to this post

    Hi Richard,

    Thank you for reporting this issue. Unfortunately there is no workaround for this. We've logged it into our TODO list and the problem will be eliminated in the next release - Q3 2007, due in December.

    Your telerik points are updated!

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Haber
    Richard Haber avatar
    6 posts
    Member since:
    Jan 2005

    Posted 28 Sep 2007 Link to this post

    Thanks for acknowledging this.  Since the behavior that I seek is for the dropdown to automatically open on enter, is there some way of hiding the the dropdown button until you fix this?
  5. Angel
    Admin
    Angel avatar
    121 posts

    Posted 01 Oct 2007 Link to this post

    Hello Richard,

    You can hide the arrow button, but the ComboBox would look rather unappealing. At any rate, here are some suggestions:

    For all solutions below you will need an access to the arrow button which you can get this way:

    RadArrowButtonElement arrowButton = (RadArrowButtonElement)
        this.radComboBox1.ComboBoxElement.Children[2].Children[1];

    1. Hide the arrow button:
       
      arrowButton.Visibility = ElementVisibility.Collapsed;
       
    2. Disable the arrow button so that it does not show the drop down (the painting will be affected to show the disabled state)

      arrowButton.Enabled = false;
       
    3. Avoid calling ShowDropDown() in the handler for Enter when the mouse is over the arrow button:

      Point mousePosAccordingTheCombo = this.radComboBox1.PointToClient(Cursor.Position);
      if (!this.arrowButton.HitTest(mousePosAccordingTheCombo))
          this.radComboBox1.ShowDropDown();

    The last is a workaround and it will show the drop-down when the user clicks on the arrow button. The only scenario for which it will not work is when the mouse is over the arrow button and the user gives focus to the combo using the Tab key. In that case the drop-down will not be shown.

    Please, feel free to use the solution that fits best to your needs. Thanks again for bringing our attention to this problem.

    We will do our best to fix this issue as soon as possible.


    Greetings,

    Angel

    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  6. Richard Haber
    Richard Haber avatar
    6 posts
    Member since:
    Jan 2005

    Posted 12 Dec 2007 Link to this post

    Do you have an expected release date for the Q3 2007 Release of the RadControls for WinForms?  I have been using the workaround suggested, but would like to purchase these for a production application and prefer to have a working release.

    Thanks
  7. Angel
    Admin
    Angel avatar
    121 posts

    Posted 13 Dec 2007 Link to this post

    Hi Richard,

    The official release date for Q3 is next week (Mon-Wed). For additional info on the release you can take a look at our RoadMap for WinForms.

     
    Sincerely yours,
    Angel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Richard Haber
    Richard Haber avatar
    6 posts
    Member since:
    Jan 2005

    Posted 26 Dec 2007 Link to this post

    I see that the Q3 release is now available.  Can you tell me if the above issue has been addressed in the Q3 release as you indicated that it might be?

    Thanks,

    Richard Haber
  9. Angel
    Admin
    Angel avatar
    121 posts

    Posted 27 Dec 2007 Link to this post

    Hi Richard Haber,

    Yes, that issue is fixed in Q3 2007. You can just call ShowDropDown() in the Enter event without the offset of the dropdown.

    Still, there is an issue with the theme of the arrow button when the drop-down is opened and closed with the arrow button (it happens only before focusing RadComboBox). This specific behavior will be corrected in the future.

    If you have any additional questions, please contact us.

    Sincerely yours,
    Angel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready