I have attached an onRightClick event handler to my grid and it’s working, but I’m still seeing the default event even though I have handled it as best I can. Am I missing something? I’ve tried handling the default behavior in a few spots as well, and no luck.
this.grid.attachEvent("onRightClick", (function(rowId, cellId, e) {
e = e||event;
this.onButtonClick(rowId, cellId, e);
e.cancelBubble = true;
e.preventDefault();
e.returnValue = false;
return false;
}).bind(this));
this.onButtonClick = function(rowId, cellId, e){
var point = {};
point.clientX = e.clientX;
point.clientY = e.clientY;
e.cancelBubble = true;
e.preventDefault();
ContextMenu.init(point,{query: "Cat or Dog"});