ev.srvElement has no properties -- Contextmenu &grid

I’m using dhtmlxWindow with grid in it. And now I’m trying to have context menu showing for the grid to delete row. But every time when I right click on the grid it gives this error message:

ev.srcElement has no properties.

…/dhtmxGrid/codebase/dhtmlxgrid.js Line: 107

Can you help me on this? Thanks.

The script is as below.


the issue wasn’t reproduced locally. Provide the complete demo to support@dhtmlx.com