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

Changing color of text in currency text box

2 Answers 97 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
PAUL
Top achievements
Rank 1
PAUL asked on 05 Nov 2012, 07:55 PM
Hey, I know there has to be a simple way to do this but haven't found it yet.

We have a currency text box that is disabled. When the value in it is less than zero we would like for the text to be red.

I have found ways to change the text color  but not on a disabled one. May be best to change background color but still has to be done on disabled object.

Is there a way to do this and if so how?


Any help is appreciated.

Paul

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 06 Nov 2012, 12:43 PM
Hello Paul,

Internet Explorer does not allow changing text color of disabled elements. In all other browser setting some color with CSS should work, given that the correct (high enough) CSS specificity is supplied.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
PAUL
Top achievements
Rank 1
answered on 06 Nov 2012, 12:53 PM
Dimo,

Thank you for your response and yes I figured that out. Very annoying but I just made the textbox readonly which of course causes other issues...

Thanks for your reply
Tags
NumericTextBox
Asked by
PAUL
Top achievements
Rank 1
Answers by
Dimo
Telerik team
PAUL
Top achievements
Rank 1
Share this question
or