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

How to make RadControls grey when disabled

2 Answers 243 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paweł
Top achievements
Rank 1
Paweł asked on 14 Oct 2008, 02:20 PM
Standard ASP.NET controls are greyed out when being disabled. RadControls, however (e.g. RadDatePicker or RadNumericTextBox) are not greyed out.
The problem is that when we have a couple of "traditional" controls and a couple of Telerik controls in one page and all of them has to be disabled, than page looks very inconsistent - all fields are disabled, but only some of them are grey.

Does anyone know how to make RadControls grey when disabled?

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 14 Oct 2008, 02:47 PM
Hello Paweł,

You can use the DisabledStyle property as shown below:

Sample code:
<telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server" Enabled="false"
    <DateInput DisabledStyle-BackColor="LightGray"
    </DateInput> 
</telerik:RadDateTimePicker> 

Kind regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paweł
Top achievements
Rank 1
answered on 15 Oct 2008, 10:34 AM
Thanks, Daniel, I didn't notice the DisableStyle property.
Tags
General Discussions
Asked by
Paweł
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Paweł
Top achievements
Rank 1
Share this question
or