Hi,
I'm pulling my hair over this, I can't get the Client-Side API of RadDatePicker to work. The object has no function or no properties...
Can you help me to find what is wrong with this code on a blank aspx page?
I get a "picker has no properties" javascript error... I tried with document.getElementById() with no help. I tried from code-behind with RegisterStartupScript but that didn't work either...
Thanks for your assistance,
Dominic.
p.s using v2008.1.515.20
I'm pulling my hair over this, I can't get the Client-Side API of RadDatePicker to work. The object has no function or no properties...
Can you help me to find what is wrong with this code on a blank aspx page?
<asp:ScriptManager ID="ScriptManager1" runat="server"> |
</asp:ScriptManager> |
<telerik:RadDatePicker ID="rdtpBegin" runat="server" SharedCalendarID="sharedCalendar" /> |
<telerik:RadDatePicker ID="rdtpEnd" runat="server" SharedCalendarID="sharedCalendar" /> |
<telerik:RadCalendar ID="sharedCalendar" runat="server" /> |
<script type="text/javascript"> |
var picker = $find("<%= rdtpBegin.ClientID %>"); |
if (picker.get_selectedDate() == null) { |
var defaultDate = new Date(); |
picker.control.set_selectedDate(defaultDate); |
} |
</script> |
I get a "picker has no properties" javascript error... I tried with document.getElementById() with no help. I tried from code-behind with RegisterStartupScript but that didn't work either...
Thanks for your assistance,
Dominic.
p.s using v2008.1.515.20