ContextMenu for RowHeaders
I have implmeneted a contextmenu that works for main data cells but does not seem to get fired when right clicking on the row headers/column headers. Below is the code I have used.
Any ideas??
Any ideas??
//set the action to handle the contextmenu
function oncontextmenu(event)
{
event.cancelBubble = true;
event.returnValue = false;
this.action("contextmenu");
}
// assign the event handler to the cell template prototype
Active.Templates.Text.prototype.setEvent("oncontextmenu", oncontextmenu);
// create action handler for the right click context menu
gridObj.setAction("contextmenu", function(src)
{
if ( gridDataLinks.length != null && gridDataLinks.length != 0 ) {
//load the context menu from gridDataLinks
var link = src.getProperty("item/link");
return eval (link);
} else {
//there is no context menu
return false;
}
}
);
Dean
June 16,