How to properly set oncontextmenu event on rows
I have tried the following to set an action to the oncontextmenu event of the selected row:
But in Firefox I get the error this.raiseEvent is not a function.
Is there another way to set the action, perhaps something like....
unction oncontextmenu(event){
this.raiseEvent("onRowContextMenu");
}
// assign html event handler to row template
obj.getRowTemplate().setEvent("oncontextmenu", oncontextmenu);
// assign grid event handler
obj.onRowContextMenu = function(event, index){
alert("myData["+index+"][0] = " + myData[index][0]);
}
But in Firefox I get the error this.raiseEvent is not a function.
Is there another way to set the action, perhaps something like....
obj.getRowTemplate().setEvent("oncontextmenu", function (event, src)
{
...
}
);
Neil Craig
March 22,