Hi Adan,
Thank you for contacting Syncfusion support.
Based on the provided information your requirement “Getting alert window when dropping the appointment”. As AppointmentDrop event is synchronous process, using this in asynchronous way is not the recommended one. As of now we don’t have any direct support to achieve this requirement. As a work around, this requirement can be achieved by using corresponding appointment (will have original start and end time) instance removed and added from DataSource of schedule and it automatically re-positioned to the original StartTime and EndTime of appointment.
Please refer the following code for the same,
[C#]
private async void Schedule_AppointmentDrop(object sender, AppointmentDropEventArgs e)
{
bool CanDrop = await contentPage.DisplayAlert("Drop Appointment", "Would you like to drop the appointment", "Yes", "No");
if (!CanDrop)
{
RepositioningAppointment(e.Appointment as ScheduleAppointment);
}
} |
We have prepared sample based on the AppointmentDrop as async method for this requirement.
We hope that this helps you. Kindly, revert us if you have any concern.
Regards,
Subburaj Pandian V