This is a migrated thread and some comments may be shown as answers.
RadTimePicker
1 Answer 26 Views
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 06 Feb 2012, 10:51 AM
I want to change the back color of telerik radTimePicker after disabled in javascript
How is it possible?

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 06 Feb 2012, 12:01 PM
Hello,

Try the following javascript.
JS:
function OnClientClick()
   {
      var RadTimePicker1 = $find("<%= RadTimePicker1.ClientID %>");
      var dateinput = RadTimePicker1.get_dateInput();
      RadTimePicker1.set_enabled(false);
      dateinput.get_styles().DisabledStyle[0] += "background:red";
      dateinput.updateCssClass();
      return false;
 }

Thanks,
Princy.
Asked by
Amit
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or