Hi Derrell,

this looks like exactly what i need, but i cant handle it :)

I tryed this

qx.Class.include(qx.ui.table.Table, qx.ui.table.MTableContextMenu);

...

var MCHandler = function(result)
   {
    console.log(result);
   };
   
 table.setContextMenuHandler(0, MCHandler);

But nothing happens. No error, no log. What am i doing wrong?

regards Sak
  ----- Original Message ----- 
  From: Derrell Lipman 
  To: qooxdoo Development 
  Sent: Sunday, January 31, 2010 9:58 PM
  Subject: Re: [qooxdoo-devel] dynamic table menu


  On Thu, Jan 28, 2010 at 11:49, Mustafa Sak <[email protected]> wrote:

    Hi devs,

    want to have a dynamic table context menu. I tryed to use 
"beforeContextmenuOpen" event to remove all buttons on menu and add new ones 
and it works in source version, but not at build. I got this Error: 

    067836 Expected event type to be instanceof 'qx.event.type.Mouse' but found 
'qx.event.type.Data'

  Context menus work specially in Table. They are trapped, most of the time, to 
prevent the default behavior, because they need to respond to cellContextmenu 
events as documented for Table.

  You didn't provide any context of how you're trying to use your dynamic 
context menu. If you're using them as "designed" where you want a right-click 
on a cell in the table to bring up a custom context menu, you do that most 
easily using the qx.ui.table.MTableContextMenu mixin. It provides a simple 
interface for generating custom context menus.

  Hope that helps. If not, please provide a description of what you're trying 
to do, along with some code you're trying to use to do it, and maybe I can 
comment further.

  Cheers,

  Derrell




------------------------------------------------------------------------------


  ------------------------------------------------------------------------------
  The Planet: dedicated and managed hosting, cloud storage, colocation
  Stay online with enterprise data centers and the best network in the business
  Choose flexible plans and management services without long-term contracts
  Personal 24x7 support from experience hosting pros just a phone call away.
  http://p.sf.net/sfu/theplanet-com


------------------------------------------------------------------------------


  _______________________________________________
  qooxdoo-devel mailing list
  [email protected]
  https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to