Previously, I asked the following question in the WebMenu forum without getting any answer, so I'll try again here:
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?
This could be a bug, it's hard to say with out seeing a stack trace or knowing more. It might be best if you submit a formal support request through http://es.infragistics.com/gethelp You could also step into the igmenu_getItemById function all, and see what specifically in that function is raising the error.
-Tony
If it can't find the function at all, that could be a problem. By default all Infragistics scripts are embedded as resources in the CLR 2.0 and 3.5 built assemblies. If you're using the 1.0 assemblies ("Infragistics.WebUI" as opposed to "Infragistics35.WebUI"), you need to put the script files in a folder corresponding to the JavascriptFileName property of the control. This is also settable via the web.config file.
The best way to find out what's going on is to use an HTTP Trace tool like Fiddler, or WebDevelopment Helper, or for Firefox - Firebug, and look for "404" errors.