Hi,
i need to implement a sub menu and have usedthe sample here
wiki.thinkgeo.com/wiki/File_...enu_CS.zip
The sample works fine for me [VS2008]but for some reason when I add the code to my own project [VS2010] I get an error when I hover over the menu item that contains the the sub menus.
Have spent a good while at it so far and I'm kinda lost as to what I have done wrong
In the page load I have the attached code which is the same as the demo
ContextMenu menuOnMap = new ContextMenu("area", 180);
ContextMenuItem redirectItem = new ContextMenuItem("<a href='thinkgeo.com' target='_blank'>ThinkGeo<a>");
ContextMenuItem InfomationItem = new ContextMenuItem("Menu item");
menuOnMap.MenuItems.Add(redirectItem);
ContextMenuItem subItem = new ContextMenuItem("sub menu");
redirectItem.MenuItems.Add(subItem);
menuOnMap.MenuItems.Add(InfomationItem);
Map1.ContextMenu = menuOnMap;
, however I get an Object required error when I hover over the item that contains the sub menu.
subContextMenu.mapUniqueID is undefined
[See attached document]
I have tested it in IE8 and Firefox.
I'm on XP and using VS2010 with V 4.5.0.0 of MapSuite.
Any ideas,
Thanks in advance
Liam
Context_Menu.docx (46.1 KB)