I need to prevent the user from changing the start and end date in the AdvancedForm. I managed to get a reference to the controls in FormCreated() and set their Enabled property to False. This works as expected, but if I click inside the disabled control it throws a javascript error of "Microsoft JScript runtime error: 'undefined' is null or not an object". How can I disable these controls without causing an error?
void RadScheduler1_FormCreated(object sender, Telerik.Web.UI.SchedulerFormCreatedEventArgs e){ if (e.Container.Mode == SchedulerFormMode.AdvancedInsert || e.Container.Mode == SchedulerFormMode.AdvancedEdit) { RadDatePicker startDate = (RadDatePicker)e.Container.FindControl("StartDate"); startDate.Enabled = false; }}