Hi. I'm trying to enable or disable the datepicker control from the client with the datepicker.enable() and datepicker.disable() but it doesn't seem to work. The browser throws an "object doesn't support this property or method". It works okay on a radtextbox control. Am I using the correct method? Thanks.
function
ShowHideRefreshItems() {
var
dp = $find(
"<%= rdpRefresh.ClientID %>"
);
//var textbox = $find("<%= rntSupportRef.ClientID %>");
if
(dp.get_enabled())
dp.disable();
else
dp.enable();
}
<
asp:CheckBox
ID
=
"cbRefresh"
runat
=
"server"
Text
=
"Request a refresh of environment"
ValidationGroup
=
"vgEnvironmentUpdate"
onclick
=
"ShowHideRefreshItems()"
/>
<
telerik:RadDatePicker
ID
=
"rdpRefresh"
Skin
=
"Default"
runat
=
"server"
DateInput-ValidationGroup
=
"vgEnvironmentUpdate"
Enabled
=
"false"
>
<
Calendar
UseRowHeadersAsSelectors
=
"False"
UseColumnHeadersAsSelectors
=
"False"
ViewSelectorText
=
"x"
>
</
Calendar
>
<
DatePopupButton
ImageUrl
=
""
HoverImageUrl
=
""
></
DatePopupButton
>
<
DateInput
DisplayDateFormat
=
"dd/MM/yyyy"
DateFormat
=
"dd/MM/yyyy"
ValidationGroup
=
"vgEnvironmentUpdate"
>
</
DateInput
>
</
telerik:RadDatePicker
>