<< Handling mouse and context menu  >> Show source code for this site
<< August 28 >>
ErnestPeterSonya
An example shows how to handle mouse events and link a context menu to a calendar.
event: DailyCalendar.AppointmentEdit

Right- or left- click on a resource, hours, date or an appointments rectangle.


You can use client side ContextMenu.OnClientMenuActivate event to initialize menu items before showing menu in the browser. Notice that one context menu is different for different appointments.

Server information:


Client event arguments:
waiting for a click...

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.