Hi,
Have created a ContextMenuItem with a click event.
ContextMenuItem blink = new ContextMenuItem("Blink");
blink.Click += new EventHandler<ContextMenuItemClickEventArgs>(blinkAsset_Click);
Add the menuitem to the ContextMenu object and then to a MarkerClassBreak object:
ContextMenu menuOnMarker = new ContextMenu("MenuMarker", 180);
classBreak.DefaultMarkerStyle.ContextMenu = menuOnMarker;
The right click of the marker produces the contextmenu but when I click the menuitem, Internet Explorer gives a script error:
-----
Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object:
-----
Adding the same ContextMenu to the DefaultMarkerStyle of the InMemoryMarkerOverlay (and do not use the ClassBreak) works fine.
Blink
"