Hi Team,
Can you help me how to pop up the context menu after right click on grid header and how to handle the further events?
Thanks.
-Agile
In the following post you can find the approach to setting custom on right click handler:
dhtmlx.com/docs/products/kb/ … 722&a=8506
Moreover you can try to attach dhtmlxMenu as context menu to the header:
menu = new dhtmlXMenuObject(null,“standard”);
menu.setImagePath("…/…/…/dhtmlxMenu/codebase/imgs/");
menu.setIconsPath("…/images/");
menu.renderAsContextMenu();
menu.setOpenMode(“web”);
menu.attachEvent(“onClick”,onButtonClick);
menu.loadXML("_context.xml")
grid = new dhtmlXGridObject(‘gridbox’);
…
grid.hdr.id= “header”;
menu.addContextZone(“header”);