:: Forum >>
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??
function oncontextmenu(event)
{
event.cancelBubble = true;
event.returnValue = false;
this.action("contextmenu");
}
Active.Templates.Text.prototype.setEvent("oncontextmenu", oncontextmenu);
gridObj.setAction("contextmenu", function(src)
{
if ( gridDataLinks.length != null && gridDataLinks.length != 0 ) {
var link = src.getProperty("item/link");
return eval (link);
} else {
return false;
}
}
);
Dean
Wednesday, June 16, 2004
Headers use Active.Templates.Item and Active.Templates.Header templates. You have to assign the event handler there as well. Or just to Active.System.Template (base class).
Alex (ActiveWidgets)
Thursday, June 17, 2004
Dean, can you post the full code?
thnx
Hugo Abreu
Tuesday, September 13, 2005
This topic is archived.
Back to support forum
Forum search