Javascript Enable/Disable RadDatePicker

2 posts, 0 answers
  1. Stephen Cossgrove
    Stephen Cossgrove avatar
    7 posts
    Member since:
    Nov 2009

    Posted 14 Oct 2010 Link to this post

    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?
  2. Dimo
    Admin
    Dimo avatar
    8471 posts

    Posted 15 Oct 2010 Link to this post

    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
Back to Top