We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Confirm Box in Drag & Drop?

Thread ID:





145357 Jun 18,2019 10:27 PM UTC Jun 21,2019 06:03 AM UTC Xamarin.Forms 3
Tags: SfSchedule
Misho Developer
Asked On June 18, 2019 10:27 PM UTC

it is possible to add a UI Confirm box before to complete a drag & drop meeting action over the SFSchedule? I tried many ways to do that but I can not get the expected result.  Something like that


private void Handle_AppointmentDrop(object sender, Syncfusion.SfSchedule.XForms.AppointmentDropEventArgs e)


e.Cancel = MyConfirmDialogRoutine().Result //because is an Async Operation and the event handler only is Sync


Subburaj Pandian Veluchamy [Syncfusion]
Replied On June 19, 2019 01:05 PM UTC

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, 
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. 
Subburaj Pandian V

Misho Developer
Replied On June 20, 2019 07:59 PM UTC

This works for me . Thanks !

Subburaj Pandian Veluchamy [Syncfusion]
Replied On June 21, 2019 06:03 AM UTC

Hi Adan, 
Thank you for the update. We are glad that the given solution meets your requirement.

Please get in touch with us if you would require any further assistance in future. 
Subburaj Pandian V  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon