Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
930
igmenu_getItemById: "Object doesn't support this action" in IE
posted

I've created a context menu on my WebGrid using a WebMenu and set the ItemClick eventhandler in the code-behind as follows:

this.WebMenu1.MenuClientSideEvents.ItemClick = "menuClick";

The javascript function menuClick is as follows:

function menuClick(menuID, itemID) {
    item = igmenu_getItemById(itemID);
    itemText = item.getText();
    switch(itemText) {

..and so on.....

In Firefox everything works perfectly but when I click an item in the context menu in IE I get "Object doesn't support this action" when I reach item = igmenu_getItemById(itemID);. Is the function not supported in IE?? Well, I hope not, so how come I get this error?