Alexander Dragunov
Posted
on Apr 29, 2008
(permalink)
Hi!
I'm using version 2008:1:415:35 of Telerik controls.
I've created combobox and specified both Width and DropDownWidth.
addRadComboBox.DropDownWidth = 200;
addRadComboBox.Width = 50;
In CSS I want to hide horizontal scrolling of the list of dropdown items, so I changed the style
.RadComboBoxDropDown_Default .rcbScroll
{
overflow-y:auto;
overflow-x:hidden;
}
But the horizontal scroll is still shown (even if I set DropDownWidth to the value which is much wider that the widest element in list).
The most interesting thing is that if I'm not specifing DropDownWidth property, everything works fine and there is no horizontal scroll.
What should I do to get rid of this horizontal scroll?
Thanks,
Alexander
Reply
Answer
Telerik Admin
Posted
on Apr 30, 2008
(permalink)
Hello Alexander Dragunov,
Since the RadComboBox renders the "overflow" CSS property in the inline styles of the .rcbScroll element, the only possible way to override it is by adding an "!important" declaration, namely:
| .RadComboBoxDropDown_Default .rcbScroll |
| { |
| overflow-y:auto; |
| overflow-x:hidden !important; |
| } |
All the best,
Alex
the Telerik team
Reply