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

[Solved] Hoizontal scrollbar and dropdown height

3 Answers 156 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Fabiano Damasceno
Top achievements
Rank 1
Fabiano Damasceno asked on 04 Feb 2010, 02:01 PM

Hi, I'm using a RadComboBox with MaxHeight defined. If the width of the text in the items is bigger than the width of the dropdown list, a auto horizontal scrollbar will appear, that's nice and desirable, but, if there is just one item and the horizontal scrollbar appears, the item will be hidden by the scrollbar.

There is someway to continue using MaxHeight without this problem?

I attached a image that shows what I mean.

3 Answers, 1 is accepted

Sort by
0
Jason Denney
Top achievements
Rank 1
answered on 04 Feb 2010, 10:37 PM
Hello Fabiano,

0
Accepted
Kalina
Telerik team
answered on 09 Feb 2010, 03:41 PM
Hi Fabiano,

The bug is logged for fixing and in the meanwhile you can use a workaround - measure the text with of RadComboBoxItems and if there is an item which width is bigger than the width of RadComboBox dropdown, increase the height of the dropdown with 20 px to accommodate for the horizontal scrollbar.

I made a sample page to illustrate this approach.

Naturally you won't need this workaround after we fix this issue

Sincerely yours,
Kalina
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Fabiano Damasceno
Top achievements
Rank 1
answered on 09 Feb 2010, 04:58 PM
Thanks for the answer Kalina.
Tags
ComboBox
Asked by
Fabiano Damasceno
Top achievements
Rank 1
Answers by
Jason Denney
Top achievements
Rank 1
Kalina
Telerik team
Fabiano Damasceno
Top achievements
Rank 1
Share this question
or