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

Icons not looking 'enabled' when RadDateTimePicker becomes enabled

1 Answer 77 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 22 Mar 2011, 09:20 PM
Hi all,

I have server-side and client-side code which can control the enabled state of a RadDateTimePicker. It loads as disabled.

When I execute the server-side code "RadDateTimePicker1.Enabled = true" the input field becomes enabled, but the icons continue to have the look of disabled icons. How can I change these icons to enabled? 

Thanks,

Sean

EDIT:

I got the functionality achieved with this:

if( (sender as CheckBox).Checked )
{
    RadDateTimePicker1.DatePopupButton.CssClass = "rcCalPopup";
    RadDateTimePicker1.TimePopupButton.CssClass = "rcTimePopup";
    RadDateTimePicker2.DatePopupButton.CssClass = "rcCalPopup";
    RadDateTimePicker2.TimePopupButton.CssClass = "rcTimePopup";
     
}
else  
{
    RadDateTimePicker1.DatePopupButton.CssClass = "rcCalPopup rcDisabled";
    RadDateTimePicker1.TimePopupButton.CssClass = "rcTimePopup rcDisabled";
    RadDateTimePicker2.DatePopupButton.CssClass = "rcCalPopup rcDisabled";
    RadDateTimePicker2.TimePopupButton.CssClass = "rcTimePopup rcDisabled";
}

1 Answer, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 25 Mar 2011, 03:15 PM
Hello Sean,

I tried to replicate the described behavior on my side but to no avail.

Please find attached a simple runnable application which works correctly. Test it locally and let me know what the difference in your case is.


Kind regards,
Maria Ilieva
the Telerik team
Tags
Calendar
Asked by
Sean
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Share this question
or