The problem is solved by using "setContextMenuHandler"
For example:
table.setContextMenuHandler(0, this._contextMenu);
...
_contextMenu : function(col,
row,
table,
dataModel,
contextMenu)
{
button1.addListener("execute", function(e)
{
alert("Button 1");
}, this);
var button2 = new qx.ui.menu.Button("button 2");
button2.addListener("execute", function(e)
{
alert("Button 2");
}, this);
contextMenu.add(button1);
contextMenu.add(button2);
return true;
}
But my first example by using "table.setContextMenu(menu)" is not resolved.
For example:
var menu = new qx.ui.menu.Menu;
menu.add(button1);
menu.add(button2);
...
table.setContextMenu(menu);
Martin
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/table-contextmenu-displayed-only-on-data-lines-tp5938668p5947697.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel