Raised when the items collection of the Schedule is changing.
Namespace: MindFusion.Scheduling
Assembly: Schedule.js
SyntaxJavaScript
Copy Code
|
|---|
EventDispatcher itemsChanging |
Event DataThe event handler method receives the following arguments:
sender
A Schedule instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A NotifyCollectionChangingEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.
ExampleThe following example attaches a handler to the itemsChanging event of a calendar schedule. In the handler method we check if the count of items in the calendar is more than 30 and if yes, we cancel the action.
JavaScript
Copy Code
|
|---|
var p = MindFusion.Scheduling; // attach a handler - the collection of schedule items is being changed. function handleItemsChanging(sender, args) { |
See Also