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!
I have the same problem. When i put the webmenu in the aspx-page it works fine. Now i wanted to move them in a user control. First it ran fine at my computer, as well as at one hosting system. At the other hosting system the webmenu doesn't work anymore. I get the menu, but i can't click on the items to get the submenus and i get the error that the igMenu_ // _events is not defined. Any ideas what i can do to run the webmenu in a user control?
Thanks, Martin.
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
If you are already using ASP.NET 3.5, you can try using the not very popular, but very helpful client-side method getLocation to get the coordinates of the element clicked and place the menu there. Some information can be found here:
http://weblogs.asp.net/bleroy/archive/2008/01/29/getting-absolute-coordinates-from-a-dom-element.aspx
If you are still using ASP.NET 1.x / 2.x, you can try using the FindPos function proposed by the QuirksMode website (a very useful site on all things Javascript/DOM)
http://www.quirksmode.org/js/findpos.html
Hope this helps / provides additional clues.
I can't say for sure. Browsers stink when it comes to this aspect. They all give different values depending on the elements, containers, positioning, and especially whether IE is in QuirksMode or standards mode. The only way to be sure is to test the scenarios in your environment. It's actually pretty easy to write a piece that will work well for a speific scenario - the difficulty is writing a generic solution that will work in all scenarios (a div inside of a table inside of a div, absolutely positioned, floated left, etc...)
-Tony
Hey Tony,
I was skimming through the KnowledgeBase for some stuff on formulas and found this article on finding the x,y positions of cell.
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=4065
Does cell.offsetLeft and cell.offsetTop work on all browsers?
Sairam