menu in grid

I am attaching a menu for the grid. I am getting menu on right click of the grid if the grid contains the data, otherwise the menu is not coming on right click(if no grid data). Is there any way of getting menu on right click on the grid without grid data (or right click on “objbox”).

u me

You can use native API of menu = "grid_body_id"; menu.addContextZone("grid_body_id");

Thanks Stanislav. Its working fine.