Hi.
I’m just confused.
Trying to enable context menu for grid and getting a js error.
The documentation says that enableContextMenu() is included in the standard version.
But your comparsion table says context menu is only part of the pro version.
Whats right?
The documentation is correct. context menu can be used in the standard version of dhtmlxgrid.
The comparsion table will be corrected.
Thank you.
If the issue still occurs for you - please, make sure that all needed js files are included to your page.
dhtmlx.com/docs/products/dht … _menu.html
Thanks very much.
For testing purposes i extended one of your samples:
Samples -> dhtmlxgrid -> celltypes -> 04 link grid
with this code:
menu = new dhtmlXMenuObject(null);
menu.addNewSibling(null, “add”, “ADD ROW”, false);
menu.renderAsContextMenu(menu);
mygrid.enableContextMenu(menu);
I included all js files and to be 100% sure i added a web menu.
Web menu works fine, but the context menu does not.
Is my code upon correct?
Sorry, a type error:
–> menu.renderAsContextMenu(menu);
is wrong, it is:
menu.renderAsContextMenu();
Have to say that i use a compiled version of your lib.
Tested some more but don’t get it running.
Got it.
–> menu.addNewSibling(null, “add”, “ADD ROW”, false);
doesn’t work.
Should be
–> menu.addNewChild(null, “add”, “ADD ROW”, false);
instead.