Search
Notification events

Most events are raised to notify you that the user has performed some action. The itemModified event is raised to let your application know that a calendar item has been modified. When a user presses the Delete key, an itemDeleted event is raised. The events itemClick, cellClick, headerClick occur when an item or other element is clicked. There are many other events related to various activities a user could carry out in the Calendar - check the Calendar members page for a list o the supported events.

The following code shows you how to handle the itemDoubleClick event to render a custom form for editing an item:

JavaScript  Copy Code

// handle the itemDoubleClick event to show the custom form for item editing
calendar.itemDoubleClick.addEventListener(handleItemDoubleClick);

function handleItemDoubleClick(sender, args)
{
 // create and show the custom form
 var form = new CustomForm(sender, args.item, "edit");
 form.showForm();
}