I'm trying to access the AdvancedEditForm save button to disable in a certain case and looking at AdvancedForm.ascx, I should be able to get to it by using:
protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e) { if (e.Container.Mode == SchedulerFormMode.AdvancedInsert) { ((LinkButton)((Panel)e.Container.FindControl("ButtonsPanel")).FindControl("UpdateButton")).Enabled = false; } }Unfortunately the program throws an "Object reference not set to an instance of an object." when it runs into that line of code. How can I access the save button? Please note I need to do it in the FormCreated event because I need to know the SchedulerFormMode value.
Also, how would I access the room and user resource dropdowns?
Thanks,
Matt