<< Appointment dragged and change duration server event  >> Show source code for this site
<< August 28August 29 >>
ErnestPeterSonyaErnestPeterSonya
This example shows how to use an server event to protect an appointment to be moved backwards in time.
Move any appointment to an earlier hour or one of previous days or change duration of this one.



Second example use same event to prevent extend period of the appointment longer than 3 hours.
Try to drag of the beginning or ending part of the appointment rectangle.



The preventing code is implementing by handing the DailyCalendar.AppointmentDragged event.

If you would look into a source code for this demo, click on the link.
For demonstration purposes all appointments displayed on a calendar are stored in ASP.NET session objects, so original values are restored immediately after a new session object is created.
A list of appointments and resources is intialized every time a new session is started.