"Agustin Almonte F." <[EMAIL PROTECTED]> writes:

> Hi, i'm experimenting with table widget and have some questions hope you can
> help me solve.
>
> Is possible to include a button column inside table? i want to add a button
> to delete the row. Have you done something similar?

It is possible, but requires that you subclass AbstractDataCellRenderer to add
the button, and subclass Table to handle "locating" the button click.  You can
use the following as reference:

TreeVirtual is a subclass of Table.

In qx.ui.treevirtual.SimpleTreeDataCellRenderer I add the open/close button
(along with all of the other tree data for the cell).

In qx.ui.treevirtual.TreeVirtual, method _handleSelectEvent(), I calculate
whether the click that caused the select event was over the open/close button
or not and act accordingly.

> Is there a way to specify columns width to fill table width automatically? i
> mean columns auto adjust to initial table width.

Unfortunately not.  You'll have to use an "appear" event handler to deal with
that.

Derrell

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to