Difficulty attacing a context menu to a layout grid

I am trying to attached a context menu to a grid that is displayed within a layout cell. to date I have had no success.
Is there any sample code showing how to do this?

I suppose this onlone sample will help you:
dhtmlx.com/docs/products/dht … _menu.html