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

RadNumericTextBox - ReadOnly ForeColor

1 Answer 139 Views
Input
This is a migrated thread and some comments may be shown as answers.
Ian Coetzer
Top achievements
Rank 2
Ian Coetzer asked on 09 Jun 2008, 08:34 AM
Hi
I have used a RadNumericTextBox on one of my grids and want to be able to make it 'readOnly' which it does well.

BUT I do not want the forecolor to become gray indicating that it is readOnly, rather I would like the foreColor to be black as per usual.

Is this possible? to set the input control to readOnly while maintaining a different foreColor??

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 10 Jun 2008, 08:54 AM
Hi Ian,

If you want to change the appearance of only one ReadOnly TextBox, you can set a forecolor declaratively like this:

<telerik:RadNumericTextBox  ReadOnly="true"  ReadOnlyStyle-ForeColor="#000"  />

However, if you want to set this style for all the readonly textboxes in your application, it is better to override the skin by adding the following CSS rule to your web application styles:


.radInput_SkinName  .radReadOnlyCss_SkinName
{
    color: #000;
}


You can modify also the background-color using the same approach.

Let us know if you need further advice.


Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Input
Asked by
Ian Coetzer
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or