Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ooypunk on Dec 31, 2009 08:09
open dhtmlx forum
Contextmenu on Grid doesn't show

Hi,

As the title says, I have problems trying to let a contextmenu show.
If I try this:
BestandenContext = BestandenLayout.cells("b").attachMenu();
BestandenContext.setIconsPath("dhtmlx/dhtmlxMenu/icons/");
BestandenContext.loadXML("xml/bestanden/dhxmenu.xml");

...then the menu shows as intended, so the XML is OK, right? But when I try this:
BestandenContext = new dhtmlXMenuObject(null, "standard");
BestandenContext.setIconsPath("dhtmlx/dhtmlxMenu/icons/");
BestandenContext.renderAsContextMenu();
BestandenContext.loadXML("xml/bestanden/dhxmenu.xml");
BestandenGrid.enableContextMenu(BestandenContext);
...and I do a right-click on the grid, nothing happens (not even the context-menu from the browser is shown, so that is blocked succesfully).

What am I doing wrong?
Answer posted by dhxSupport on Jan 04, 2010 03:37
Unfortunately we cannot reproduce this issue locally. Please find example here http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/03_context_menu/01_pro_context_menu.html.
If issue still occur please provide us complete example where we can reproduce it (you can send such example directly to the support@dhtmlx.com)