At the moment i can access the controls already in my advanced customized template. I use the following code to do that:
However, i also do have validation on the server side, but when i want to cancel the update and leave the advanced form template open I have a problem, since the AppointmentCommandEventArgs doesnt have a cancel option. Besides this problem, I also want to implement drag and drop, however with drag and dropping i cannot access the Appointmentcommand as well.
So i want to move the update/insert from the appointmentcommand to the updatecommand/insertcommand:
But from these e's i cannot access the cs_advancedform, how can i achieve this, so i can easely access my controls on my customized advanced form template?
protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e) { Appointment appHuidig = e.Container.Appointment; RadScheduler scheduler = (RadScheduler)sender; RadDatePicker StartDate = (RadDatePicker)e.Container.Controls[1].FindControl("StartDate"); RadTimePicker StartTime = (RadTimePicker)e.Container.Controls[1].FindControl("StartTime"); RadDatePicker EndDate = (RadDatePicker)e.Container.Controls[1].FindControl("EndDate"); RadTimePicker EndTime = (RadTimePicker)e.Container.Controls[1].FindControl("EndTime"); RadComboBox rcb_AfspraakType = (RadComboBox)e.Container.Controls[1].FindControl("rcb_AfspraakType"); RadTextBox SubjectText = (RadTextBox)e.Container.Controls[1].FindControl("SubjectText"); RadTextBox DescriptionText = (RadTextBox)e.Container.Controls[1].FindControl("DescriptionText"); RadComboBox rcb_Adviseurs = (RadComboBox)e.Container.Controls[1].FindControl("rcb_Adviseurs"); int fiat = 1; RadComboBox rcb_Kamers = (RadComboBox)e.Container.Controls[1].FindControl("rcb_Kamers"); CheckBox AllDayEvent = (CheckBox)e.Container.Controls[1].FindControl("AllDayEvent"); RadTextBox rtb_ProspectID = (RadTextBox)e.Container.Controls[1].FindControl("rtb_ProspectID");However, i also do have validation on the server side, but when i want to cancel the update and leave the advanced form template open I have a problem, since the AppointmentCommandEventArgs doesnt have a cancel option. Besides this problem, I also want to implement drag and drop, however with drag and dropping i cannot access the Appointmentcommand as well.
So i want to move the update/insert from the appointmentcommand to the updatecommand/insertcommand:
protected void RadScheduler1_AppointmentInsert(object sender, Telerik.Web.UI.AppointmentInsertEventArgs e) { } protected void RadScheduler1_AppointmentUpdate(object sender, Telerik.Web.UI.AppointmentUpdateEventArgs e) { }But from these e's i cannot access the cs_advancedform, how can i achieve this, so i can easely access my controls on my customized advanced form template?