This is a migrated thread and some comments may be shown as answers.

Cancel Moving appoinment

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lawrence
Top achievements
Rank 1
Lawrence asked on 11 Aug 2017, 04:12 PM

I'm test out the Scheduler.  I'm trying to cancel moving a appointment if it new date is past todays date.  In the AppointmnetDropped, i figured i should check and cancel here. I cannot find a cancel function to set.  I did find in other posts you used a  "e.Cancel = true"  e is AppointmentMovingEventArgs.  But can not see a Cancel in the AppointmentMovingEventArgs. 

Did this way change?  

I'm using VB.net 2015. 

Lawrence

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 14 Aug 2017, 06:21 AM
Hello Lawrence, 

Thank you for writing.  

The AppointmentDropped event is fired when the drag drop operation has finished. If you need the possibility to cancel the drop operation, it is necessary to use the AppointmentDropping event.

As to the AppointmentMoving event, it is indeed fired when an appointment is moving. The user can control whether to allow the moving operation or not. The AppointmentMovingEventArgs.Cancel argument allows canceling the event. I have attached a sample project for your reference.  

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Lawrence
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or