ASP.NET Pack Programmer's Guide
NotifyCollectionChangingEventArgs Class
See Also
 





Provides data for collectionChanging events.

Namespace: MindFusion.Mapping
Package: Events.js

 Syntax

JavaScript  Copy Code

// class
NotifyCollectionChangingEventArgs.prototype = {}

 Example

The following code handles the collectionChanging event of the decorations property of a DecorationLayer object.

JavaScript  Copy Code

var m = MindFusion.Mapping;

var markers = new m.DecorationLayer("Images");

...................
//add some Marker-s to the decorations property
......................

markers.decorations.collectionChanging.addEventListener(handleCollectionChanging);


function (handleCollectionChanging) (sender, args )
{
     if(args.action == m.NotifyCollectionChangedAction.Add)
     {
          args.cancel = true;
     }
}

 Inheritance Hierarchy

MindFusion.Mapping.EventArgs
    MindFusion.Mapping.CancelEventArgs
        MindFusion.Mapping.NotifyCollectionChangingEventArgs

 See Also

NotifyCollectionChangingEventArgs Members
MindFusion.Mapping Namespace