Hi Angus Cheung,
If you do not already have a custom appointment edit dialog you can handle
AppointmentEditDialogShowing event of RadScheduler and from there get a reference to the default appointment edit dialog and handle its Closed event. Finally in this handler of the Closed event you can check the DialogResult and if it is OK, call your save logic. You will have to be careful so that you do not subscribe to the Closed event multiple times.
There is another approach that uses a custom appointment edit dialog. When the user pressed the OK button on the default appointment edit dialog, the ApplySettingsToEvent method is called. You can create a very simple inheriting dialog that overrides this method and place your code there as in the code snippet below:
However, you should note that changes to an appointment can happen not only when the user presses the OK button on the appointment edit dialog, but also when the user resizes or moves an appointment.
If you handle the CollectionChanged event of the Appointments collection of RadScheduler you will get notifications whenever an appointment changes, and this may be a better place for the saving logic.
Also, did you consider using the data binding functionality of RadScheduler for WinForms?
Kind regards,
Jordan
the Telerik team