Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by GR on May 30, 2007 00:56
open dhtmlx forum
Context menu

I have a grid control with a context menu defined. My menu has: Add row and Delete row. Everithing works fine, but the context menu desnt shows if the grid is empty.  Is there a function to call context menu even if the grid is empty??
Answer posted on May 30, 2007 20:01
You can attach dhtmlxMenu to any HTML element by using default context menu API.
To attach it to empty space of grid you can use next command.

    aMenu=new dhtmlXContextMenuObject('120',0);
    ....
   aMenu.setContextZone(mygrid.objBox,"empty_space");


Answer posted by Alexandra (Support) on Nov 30, 2014 17:56

If you haven't found the needed information there and still looking for a solution, you will find the additional help checking php grid edit and java script file upload.