no method for showTimePopUp()

2 posts, 1 answers
  1. vvvv
    vvvv avatar
    25 posts
    Member since:
    Aug 2011

    Posted 20 Jan 2014 Link to this post

    Hi,
    I am trying to use a RadTimePicker and calling it through Javascript on a button click. But when I click on the button, console displays an error saying no method found for showTimePopup(). 
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Jan 2014 Link to this post

    Hi,

    Unfortunately I couldn't replicate the issue at my end. Please have a look into the following code snippet which works fine at my end.

    ASPX:
    <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server">
    </telerik:RadDateTimePicker>
    <telerik:RadButton ID="RadButton1" runat="server" Text="ShowTimePopUp" AutoPostBack="false"
        OnClientClicked="Showtimepopup">
    </telerik:RadButton>

    JavaScript:
    <script type="text/javascript">
        function Showtimepopup(sender, args) {
            var picker = $find("<%=RadDateTimePicker1.ClientID %>");
            picker.showTimePopup();
        }
    </script>

    Please provide your code if it doesn't help.
    Thanks,
    Shinu.
Back to Top