using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;

public partial class Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (CheckBox1.Checked)
        {
            RadDateTimePicker1.DatePopupButton.CssClass = "rcCalPopup";
            RadDateTimePicker1.TimePopupButton.CssClass = "rcTimePopup";
            RadDateTimePicker2.DatePopupButton.CssClass = "rcCalPopup";
            RadDateTimePicker2.TimePopupButton.CssClass = "rcTimePopup";
            RadDateTimePicker1.Enabled = true;
            RadDateTimePicker2.Enabled = true;

        }
        else
        {
            RadDateTimePicker1.DatePopupButton.CssClass = "rcCalPopup rcDisabled";
            RadDateTimePicker1.TimePopupButton.CssClass = "rcTimePopup rcDisabled";
            RadDateTimePicker2.DatePopupButton.CssClass = "rcCalPopup rcDisabled";
            RadDateTimePicker2.TimePopupButton.CssClass = "rcTimePopup rcDisabled";
            RadDateTimePicker1.Enabled = false;
            RadDateTimePicker2.Enabled = false;
            
        }
    }
    
}
