I am using WebMenu as a contextmenu for ultrawebgrid cells. The contextmenu works fine if I place the webgrid and webmenu directly in the page. The problem starts when I am trying to create a usercontrol using webgrid and webmenu, contextmenuclick(right click on grid cell) gives me an error saying "Popup name not valid".
igmenu_showMenu("<%=this.MROContextMenu.ClientID %>",null,0,0);
Thanks
Hello,
You can use the client-side InitializeMenu event of UltraWebMenu to find out the ID of the menu, and later use it to show the context menu. I did a quick search in our forum archives and found out that a customer has reported a problem very similar to yours (same error message while trying to show context menu for grid or treeview) and as the discussion goes on, it appears that the InitializeMenu approach resolved the problem.
Link (I am using tinyurl since the link is very long and gets corrupted in the HTML editor Community Server is using):
http://tinyurl.com/yu2qjd
I hope this helps. Please, let me know if this is not working / not applicable in your setup.
Rumen,
Not to be ignorant, but the tinyurl wasn't a hyperlink so I can't see what you're referring too. Can you post the url, and I'll cut and paste it so I can see what you're referring to?
THanx,
Mike
Thank you very much for that pointer. I have tried using the InitializeMenu event and got the menu id. Now that error has gone but I am not able to see the menu. No error and no context menu. Strange thing!!! any ideas??
The code now is :
<MenuClientSideEvents ItemClick="ContextMenuItemClick" InitializeMenu="InitializeLayout" />
In BLOCKED SCRIPT
{
MyMenuId = menuId;
alert(MyMenuId);
}
igmenu_showMenu(MyMenuId,null,0,0);
Thanks.