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

no method for showTimePopUp()

1 Answer 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
vvvv
Top achievements
Rank 1
vvvv asked on 20 Jan 2014, 04:25 PM
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(). 

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 21 Jan 2014, 04:07 AM
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.
Tags
General Discussions
Asked by
vvvv
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or