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

Hiding RadTimePicker javascript

2 Answers 84 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
ataya
Top achievements
Rank 1
ataya asked on 03 Feb 2009, 07:54 PM
I have a check box that when checked a RadTimePicker should get hidden .. what is the javascript function for that

Thank you,

2 Answers, 1 is accepted

Sort by
0
ataya
Top achievements
Rank 1
answered on 04 Feb 2009, 06:32 AM
I found the script that works fine

 <script type="text/javascript"
       function disable() 
       { 
         var picker = $find("<%= RadDatePicker1.ClientID %>"); 
         picker.set_enabled(false); 
       } 
       function enable() 
       { 
        var picker = $find("<%= RadDatePicker1.ClientID %>");        
        picker.set_enabled(true); 
       }         
   </script> 

but doesn't fully enable or disable the control.. the clock button is still active (although it does nothing) unlike the enabling or disabling the control from code behind.



0
Accepted
Daniel
Telerik team
answered on 06 Feb 2009, 03:06 PM
Hello Ataya,

RadTimePicker/RadDatePicker control which is disabled on the server, can't be enabled client-side. This is known limitation and it's added in our product backlog for future consideration by our developers.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Calendar
Asked by
ataya
Top achievements
Rank 1
Answers by
ataya
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or