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

Javascript Enable/Disable RadDatePicker

1 Answer 505 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Stephen Cossgrove
Top achievements
Rank 1
Stephen Cossgrove asked on 15 Oct 2010, 01:03 AM
Hi,

I need to disable/enable a raddatepicker on the change of a checkbox and on document.ready

Here is what i have

var picker = $find("<%= rdpStartDate.ClientID %>");
if(picker) {
  picker.set_enabled(false);
}

this is working fine except when the document.ready function calls this code.

Can anyone help?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 15 Oct 2010, 09:23 AM
Hi Stephen,

Please refer to:

http://blogs.telerik.com/dimodimov/posts/08-12-13/don_t_use_body_onload_in_asp_net_ajax_websites.aspx

document.ready is practically the same as body.onload (window.onload)

Greetings,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Calendar
Asked by
Stephen Cossgrove
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or