Custom right Click menu (grid)

Hello, I am wondering if it is possible to add a custom right click menu to the Grid object.



What I would like to do is possibly create a edit menu that would be linked to the cell selected.



I know this is pretty vague in functionality, and that dhtmlxGrid probably does not support it, but we would like to see if this ability can be done with some coding.



Thank you.

The grid has native support for context menu
dhtmlx.com/docs/products/dhtmlxG … 1065008000

If you want not use dhtmlxMenu, but some custom solution - you can use onRightClick event of grid, such event occurs when right mouse clicked over some cell and grid , and can be used a starting point for showing any kind of context menu.

Thank you for your reply, and it looks like context menu would do the trick, but is it possible to create config.xml in  menu.loadXML(“config.xml”);  using JSON object structure? None of the examples show that. Is XML version the only way to create context menu?

Thanks in advance.

The data can be loaded only from XML.
But menu allows dynamic construction as well - you can build context menu fully by js commands, without external XML usage.

dhtmlx.com/docs/products/dhtmlxM … 1221509000