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

RadInput ReadOnly Style Similar to Disabled Style

5 Answers 175 Views
Input
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 14 May 2008, 04:11 PM
With the Q1 update, the way that the ReadOnly attribute affects the style of the RadInput has changed. Before it would lock the control but not change the style. Now it changes the style to match the "disabled" style, which is the "grayed-out" style.

This does not seem to be an improvement as I want a ReadOnly input not a disabled input. How do I change the style to reflect a locked/readonly input versus a gray-out disabled input?

5 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 15 May 2008, 11:06 AM
Hi Dennis,

The ReadOnly style has been introduced in order to provide a visual indication that the textbox may not receive a user input.

If you want to define your custom readonly style, please use the following CSS selector to override the skin styles:

.radInput_Skin  .radReadOnlyCss_Skin
{
    .........
}


You can add the above CSS code wherever you find it convenient in your web application.

Let us know if you need more information.


Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris Dalessandri
Top achievements
Rank 1
answered on 05 Jun 2008, 07:13 PM
This is a curious decision as your built-in readonly style makes it very hard to read anything at all.  A visual cue is fine, but how about we have one that doesn't render the page useless to anyone with slight vision issues.

Thanks.
0
Dimo
Telerik team
answered on 06 Jun 2008, 06:24 AM
Hi Chris,

Thank you for your feedback, we will try to improve readability for the next release.

All the best,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris Dalessandri
Top achievements
Rank 1
answered on 06 Jun 2008, 12:33 PM
Thanks. 

I am getting customer complaints about the new style.  So, can you tell me how to make the readonly style look exactly like the normal style, preferably across skins?

I appreciate your help.
0
Dennis
Top achievements
Rank 1
answered on 06 Jun 2008, 12:56 PM
Chris,

Here is an example that I used for the Office2007 ReadOnly style, placed inline with the page.

.radReadOnlyCss_Office2007 {

border:1px solid #999999 !important;

color:#000 !important;

font:12px segoe ui, arial,tahoma,sans-serif !important;

background:#fff !important;

padding:1px 0 1px 1px !important;

}

Good luck.

Dennis

Tags
Input
Asked by
Dennis
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Chris Dalessandri
Top achievements
Rank 1
Dennis
Top achievements
Rank 1
Share this question
or