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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

109354 Jun 10,2013 05:05 AM UTC Jun 12,2013 12:16 PM UTC WPF 3
loading
Tags: Schedule
Amal
Asked On June 10, 2013 05:05 AM UTC

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.



Joy Oyiess Rex  K [Syncfusion]
Replied On 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

Amal
Replied On 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


Joy Oyiess Rex  K [Syncfusion]
Replied On 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

CONFIRMATION

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.

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

;