"Joe Hudson" <[EMAIL PROTECTED]> writes:
> 1. (*) text/plain ( ) text/html
>
> Ive figured out how to handle a table row click:
>
> var table = new qx.ui.table.Table(tableModel);
> with (table) {
>
> getSelectionModel().setSelectionMode(qx.ui.table.SelectionModel.SINGLE_SELEC
> TION);
> getSelectionModel().addEventListener("changeSelection", function (e) {
> alert(e);
> });
>
> But, what I cant figure out is how do I get cell information. For example,
> if the value in the 1st column was some identifier, how would I retrieve
> that? Also, is there any to hide a table column (containing identifiers)
> when the table is rendered? Thanks for the help.
>
A changeSelection event in Table does not have data. You need to get the cell
data by determing which cell is focused. Something like this should it it:
var f = function(e)
{
var row = table.getFocusedRow();
var column = table.getFocusedColumn();
alert("Selected value is " + table.getTableModel().getValue(column, row));
}
table.getSelectionModel().addEventListener("changeSelection", f);
Cheers,
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
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel