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

How to set font-color for a disabled textbox

3 Answers 330 Views
Input
This is a migrated thread and some comments may be shown as answers.
saravanan k
Top achievements
Rank 1
saravanan k asked on 03 Jul 2010, 12:20 PM
hi,

I have a Rad Text box

 

<telerik:RadTextBox ID="RadTextBox1" runat="server"  Text="Test" Enabled="false">

 

 

<DisabledStyle CssClass="MyInvalidTextBox" ></DisabledStyle>

 

 

</telerik:RadTextBox>

and the following style

 

 

html body form .RadInput .MyInvalidTextBox

 

 

 

 

{

 

border-color: #f33;

 

 

background: none #ff9;

 

 

color: Black;

 

}


After disabling the text box, the font color still remains greyed out.?
Can you please help me with this.

Regards
Saravanank

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 05 Jul 2010, 08:22 AM
Hi Saravanan k,

Internet Explorer does not allow changing the text color of disabled elements. It is always grey.

Regards,
Dimo
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
0
Nick
Top achievements
Rank 2
answered on 11 Jul 2010, 07:57 PM
I spent almost three hours trying to do this and researching before I managed to do a correct search to find this post.   I basically wasted a lot of time screwing with CCS files assuming _I_ must be doing something wrong since there are so many examples in the tutorial - naturally it didn't occur do me that none of them were the disabled style.

HOW about putting this FREAKING important information about 95% of the desktops in the help file?  Seriously guys.  Slack. 

0
Dimo
Telerik team
answered on 12 Jul 2010, 09:11 AM
Hi Nick,

We have already added a note about this issue and the help article will be updated within a couple of days.

In similar cases you can verify whether the problem is control-specific or browser specific by using a Web Developer Toolbar and/or trying the styles with a plain HTML element.

Regards,
Dimo
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
Input
Asked by
saravanan k
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Nick
Top achievements
Rank 2
Share this question
or