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

How to hide Horizontal scroll bar in radcombo box

3 Answers 266 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Nimesh Desai
Top achievements
Rank 1
Nimesh Desai asked on 12 Aug 2009, 09:04 PM
How to hide the horizontal scroll bar in a rad combo box. All the items in the combo box are shorter than the dropdown width of the control, yet a horizontal scroll bar turns up and seems unnecessary.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 Aug 2009, 07:46 AM
Hi Nimesh Desai,

Add the following CSS in order to hide the horizontal scrollbar of RadComboBox dropdown.

CSS:
 
<style type="text/css">  
.RadComboBoxDropDown_Default .rcbScroll  
{  
   overflow-x:hidden !important;  
}  
</style> 
Note: Change the Default to SkinName that you are using, if any.

Thanks,
Princy.
0
Stefan Pilakouris
Top achievements
Rank 1
answered on 17 Feb 2010, 09:36 AM
I found a solution that works both in IE and Firefox (also works on Safari and Opera).

Add the following CSS to hide the horizontal scrollbar of all RadComboBox dropdowns:
.RadComboBoxDropDown .rcbList  
{  
    widthauto !important;  
}  
 
0
TonyG
Top achievements
Rank 1
answered on 30 Apr 2012, 03:33 PM
For anyone who stumbles onto this old thread like I just did, my horizontal scrollbars were not removed with Stefan's CSS, but they were with Princy's CSS (we see this solution once in a while in this forum but I forgot the details). As Princy said, change the skin, so in my case: .RadComboBoxDropDown_Web20

Maybe there was some other factor affecting Stefan's rendering.
Tags
ComboBox
Asked by
Nimesh Desai
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Stefan Pilakouris
Top achievements
Rank 1
TonyG
Top achievements
Rank 1
Share this question
or