Custom Appointment Form does not save to DB (mdb or sql server)

I am new to using Syncfusion and for the past two weeks i have been trying to use a custom appointment form (downloading i think 7 examples already) to connect to either sql server or an mdb database. I have been able to connect to a sql server database, but i have been unsuccessful in using an custom appointment form. Correct me if I'm wrong, but the custom appointment for does not fire the item changed event, so i don't know how to save the appointment to DB. Can you guys help me out? Thanks

1 Reply 1 reply marked as answer

BT Balamurugan Thirumalaikumar Syncfusion Team January 20, 2021 05:59 PM UTC

Hi JP, 

Thank you for using syncfusion products. 

We have checked your reported query “custom appointment for does not fire the item changed event” and given sample at our end. To handle the default appointform,  we suggest you to set the e.Cancel  and e.Handled as true.The ItemChanged Event will trigger only when both e.Cancel  and e.Handled as true.Please refer the below code snippet and sample. 

//Event subscription 
this
.scheduleControl1.ShowingAppointmentForm += scheduleControl1_ShowingAppointmentForm;

//Event customization 
void
scheduleControl1_ShowingAppointmentForm(object sender, ShowingAppointFormEventArgs e) 
        { 
            //Cancel the default appointform for schedule control 
            e.Cancel = true; 
            //To handle the default appointform for schedule control 
            e.Handled = true; 
            
            //Shows the Custom appointment form 
            form.ShowDialog(); 
        }

//Event subscription 
this
.scheduleControl1.ItemChanged += ScheduleControl1_ItemChanged;

//Event customization 
private void ScheduleControl1_ItemChanged(object sender, ScheduleAppointmentEventArgs e) 
        { 
             
        } 

Balamurugan Thirumalaikumar  



Marked as answer
Loader.
Up arrow icon