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

RadComboBox height incorrect when text is too wide

2 Answers 72 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Shira
Top achievements
Rank 1
Shira asked on 19 Apr 2011, 11:25 PM
I have a RadComboBox that looks fine as long as the text for the items is not wider than the width of the combobox control.  If the text overflows though, not only does a horizontal scrollbar appear on the control (which is okay), but the dropdown is shortened to a single line long so that choosing an item requires extensive scrolling.  Is there some way to prevent this behavior so the height of the control is not wrong in this situation?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Apr 2011, 06:12 AM
Hello Shira,

One suggestion is to set the Height for the RadComboBox If you do not set Height, the drop-down list sizes itself automatically based on the number of items in the list.

Take look at the following help article for more on this.
Controlling Appearance

Thanks,
Shinu.
0
Shira
Top achievements
Rank 1
answered on 20 Apr 2011, 03:21 PM
Shinu,

What I want is for the dropdown to size to match the number of items in the list, (as Telerik's documentation says that it will).  Unfortunately, that does not seem to be what happens in the case that there's an item with a long text.  Setting height to some hardcoded value will not accomplish that goal - I don't need the dropdown to be of a hardcoded height; I need for its height to be determined based on the number of items in the list.  The problem is that it does not work that way when the items are wider than the width of the combobox.  It seems to me this is a bug.  Is it possible for Telerik to fix the bug, or is there a workaround that will accomplish the desired result?  I'm happy to post this as a support ticket if that would be helpful.

Thanks!
Shira
Tags
ComboBox
Asked by
Shira
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Shira
Top achievements
Rank 1
Share this question
or