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.
Unfortunately, activation email could not send to your email. Please try again.

Stop ScheduleAppointment drag behaviour

Thread ID:





73137 Apr 22,2008 01:20 AM Apr 30,2010 03:35 AM Windows Forms 6
Tags: ScheduleControl
Asked On April 22, 2008 01:20 AM


Is there a way to stop the drag behaviour of schedule appointments in the Schedule Control ?

Thank you.

Replied On April 24, 2008 03:04 AM

Hope this code may be useful to your problem

using Syncfusion.Schedule;

this.scheduleControl1.ItemChanging += new ScheduleAppointmentChangingEventHandler(scheduleControl1_ItemChanging);

private void scheduleControl1_ItemChanging(object sender, Syncfusion.Schedule.ScheduleAppointmentCancelEventArgs e)
if (e.Action == ItemAction.ItemDrag)
e.Cancel = true;


Replied On April 25, 2008 12:38 AM

Hi Risath,

It solves the problem only for the "month view", but in the "week view" still able to drag appointments.

Event does not fire in the "week view".

Is there a way to stop this behaviour ?

Thank you in advance.

Administrator [Syncfusion]
Replied On April 25, 2008 09:36 AM

The event is raised for me for the week view (actually all views) in the samples shipped with the product, and the code that Risath posted prevented the drop from completing in the week view in that sample. In your project, are you somehow unsubscribing to the event or recreating the ScheduleControl as you change views?

If you can post a sample where this fails either here or in Direct Trac, we can try to debug it.

Administrator [Syncfusion]
Replied On April 25, 2008 10:25 AM

One problem with using the event to ignore a drag is that the user does see the drag start, but when he goes to drop, the drop does not occur. We will add a an event (and maybe a global property too) that will prevent your user from starting a drag.

Replied On April 30, 2010 02:51 AM

how to Stop ScheduleAppointment drag behaviour, the user like to Locked the item, not move to another date and then back to original date.

Replied On April 30, 2010 03:35 AM

Exception occur when D&D, if the source and target Date is the same date.


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.

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.