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

drag and drop and Delete the Appointment in Schedule Control in WPF

Hi....

1.  is there are any way to show alert message before drag and drop and Delete the Appointment in           
    Syncfusion Schedule Control in WPF.

2. How to prevent the appointment box, while right click on the appointment schedule

If possible to the above queries,  can you send a sample coding, if would be helpfull us.



3 Replies

JO Joy Oyiess Rex  K Syncfusion Team June 10, 2013 12:45 PM UTC

Hi Amal,

 

Thank you for your interest in Syncfusion products.

 

In the Schedule control by default the there is an alert box while delete the appointments and for the drag and drop you can specify your custom message box in the Appointment drag and drop events.

 

To find more about this you can refer the following link,

 

http://help.syncfusion.com/ug/wpf/schedule/default.htm#!Documents/431appointmentdraganddropandresizingappointment.htm

 

Regarding your second query,

With the given information we have suspect that the query is related to visibility of “ContextMenu” while right click the appointment. If so you can set the “ContextMenuType” property of the Schedule as Custom.

 

Please find the attached sample for the above queries.

 

If the above solution was not satisfy your query, please revert us back with more information by thus we could assist you better.

 

Regards,
Joy Oyiess Rex K



ScheduleDemo_f62117ac.zip


AM Amal June 12, 2013 05:29 AM UTC

Hi...

Thanks for the quick response..

  1. while drag and drop the appointment it has to ask confirmation message .If i click "cancel" button it has to be not allowed to drag to the next position .Please refer the below sample 
Here is the sample

MessageBox.Show("Confirmation",  MessageBoxButton.OKCancel);
            if (DialogResult == true) //OK
            {

                // Update the Appointment Changes
            }
            else
                //Cancel
                //dont update the Appointment , and the position of the Appointment cannot be changed (come back to the previous position )

can you provide, if any sample..


Thanks

Amal



JO Joy Oyiess Rex  K Syncfusion Team June 12, 2013 12:16 PM UTC

Hi Amal,

We can handle the Drag and Drop operation property either before dragging the appointment or after dropped using the property AllowDragAndDrop. We cannot handle it in the middle of drag and dropping, instead we can achieve your requirement through the workaround.

Workaround:

In the AppointmentDropped event of the Schedule, we can choose the position of the appointment to be placed, either in the previous or new position after the appointment dropped based on the MessageBoxResult value.

We have attached a sample for the same.

Please let us know, if you have any further assistance.

Regards,

Joy Oyiess Rex K



ScheduleDemo_2533a6a3.zip

Loader.
Live Chat Icon For mobile
Up arrow icon