Again, thank you very much for the help Derrell. If I want to have a column that exists in the model but is not displayed, how would I do that? You all have helped me so much. Thanks.
Joe Hudson -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 7:04 PM To: qooxdoo Development Subject: Re: [qooxdoo-devel] how to catch table selection click event "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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.18/734 - Release Date: 3/26/2007 2:31 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.18/734 - Release Date: 3/26/2007 2:31 PM ------------------------------------------------------------------------- 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