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

Input[Readonly] CSS affecting RadComboBox

1 Answer 69 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Web team
Top achievements
Rank 1
Web team asked on 20 May 2010, 12:18 PM
I have two controls in my page, 1 readonly textbox (input) and 1 radcombobox.

i changed the style of my textbox as shown below:
<style type="text/css"
        input[readonly] 
        {  
             background-color#fafafa !important;  
             color#000000 !important;  
             cursordefault !important; 
        } 
    </style> 

however it seemed like radcombobox uses input[readonly] as well and it is affected by my custom style. how can i prevent this?

1 Answer, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 20 May 2010, 02:19 PM
Hello Arnold,

Yes, RadComboBox's input uses the readonly attribute when it is read only (by default). If you don't use !important, your CSS rule won't be able to override RadComboBox's styling.

Best wishes,
Kamen Bundev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Web team
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Share this question
or