Hiding radTimePicker

2 posts, 0 answers
  1. Santele
    Santele avatar
    15 posts
    Member since:
    Jul 2013

    Posted 21 Aug 2013 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Aug 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top