Raised while an item is being modified.
Namespace: MindFusion.Scheduling
File: Calendar.js
JavaScript Copy Code |
---|
EventDispatcher itemModifying |
The event handler method receives the following arguments:
sender
A Calendar instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
An ItemModifyingEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.
The following example attaches a handler to the itemModifying event of a calendar. In the handler method we check if the name of the resource associated with this item is "Prof. Bradley". If yes, we cancel the action e.g. the user was not able to modify this event.
JavaScript Copy Code |
---|
var p = MindFusion.Scheduling; // attach a handler - when a calendar item is being modified. function handleItemModifying(sender, args) { |