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

Stop ScheduleAppointment drag behaviour

Thread ID:

Created:

Updated:

Platform:

Replies:

73137 Apr 22,2008 05:20 AM UTC Apr 30,2010 07:35 AM UTC WinForms 6
loading
Tags: ScheduleControl
Sachintha
Asked On April 22, 2008 05:20 AM UTC

Hi,

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

Thank you.


Risath
Replied On April 24, 2008 07:04 AM UTC

Hi,
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;
}
}

Risath


Sachintha
Replied On April 25, 2008 04:38 AM UTC

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 01:36 PM UTC

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 02:25 PM UTC

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.


hom
Replied On April 30, 2010 06:51 AM UTC

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

hom
Replied On April 30, 2010 07:35 AM UTC

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

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

;