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

Hiding radTimePicker

1 Answer 9 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
PuriTelerik
Top achievements
Rank 1
PuriTelerik asked on 22 Aug 2013, 04:52 AM
Hi Telerik ,

Would like to hide timepicker control by defaullt. As per my filter criteria on other controls, I shd be able to show/hide the radTimepicker again. Can this be achieved by using javascript/Jquery? Or any direct prop for the control itself?

Regards,
San

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 22 Aug 2013, 08:05 AM
Hi Santele,

Please have a look at the following JavaScript code I tried to hide the RadTimePicker in the client side page load and change its visibility in the client side click of a RadButton.

ASPX:
<telerik:RadTimePicker ID="RadTimePicker1" runat="server">
</telerik:RadTimePicker>
<br />
<telerik:RadButton ID="RadButton1" runat="server" Text="Show RadTimePicker" OnClientClicked="OnClientClicked"
    AutoPostBack="false">
</telerik:RadButton>

JavaScript:
<script type="text/javascript">
    var radtimepicker;
    function pageLoad() {
        radtimepicker = $find('<%=RadTimePicker1.ClientID %>');
        radtimepicker.set_visible(false);
    }
 
    function OnClientClicked(sender, args) {
        radtimepicker.set_visible(true);
    }
</script>

Thanks,
Shinu.
Tags
Calendar
Asked by
PuriTelerik
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or