How to disable context menu on right click

Hi guys,
Please tell me how to disable context menu when we right click the mouse.
I found that the following piece of code in dhtmlxgrid.js does this:

this.entBox.oncontextmenu=function(e){(e||event).cancelBubble=true;

But we doesn’t want to make change in this file.We need to override this in patch file.But we couldn’t find the parent function for the segment of code.
Please tell the solution and do the needful.

entBox object is avaialble only after grid initialization. You can create custom function with will disable context menu:

dhtmlXGridObject.prototype.disableContextMenu=function(){ this.entBox.oncontextmenu=function(e){(e||event).cancelBubble=true;return false} }
and then call:

mygrid.init(); mygrid.disableContextMenu();