Cancel Moving appoinment

2 posts, 0 answers
  1. Lawrence
    Lawrence avatar
    2 posts
    Member since:
    Jul 2017

    Posted 11 Aug Link to this post

    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

     

     

     

  2. Dess
    Admin
    Dess avatar
    2107 posts

    Posted 14 Aug Link to this post

    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.
Back to Top