This is a migrated thread and some comments may be shown as answers.

Dropdown not dropping down beneath combo box

7 Answers 113 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard Haber
Top achievements
Rank 1
Richard Haber asked on 25 Sep 2007, 07:42 PM
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?

7 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 27 Sep 2007, 03:25 PM
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
0
Richard Haber
Top achievements
Rank 1
answered on 28 Sep 2007, 05:07 PM
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?
0
Angel
Telerik team
answered on 01 Oct 2007, 02:45 PM
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
0
Richard Haber
Top achievements
Rank 1
answered on 12 Dec 2007, 04:53 PM
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
0
Angel
Telerik team
answered on 13 Dec 2007, 09:50 AM
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
0
Richard Haber
Top achievements
Rank 1
answered on 27 Dec 2007, 04:29 AM
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
0
Angel
Telerik team
answered on 27 Dec 2007, 05:31 PM
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
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Richard Haber
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Richard Haber
Top achievements
Rank 1
Angel
Telerik team
Share this question
or