Hello stirling, qx.ui.listview.ListView is deprecated and qx.ui.table.Table should be used instead. Try the following code. I hope it helps you to achieve the desired behaviour.
// Create Header var ranksHead = { filename: { label : "Name", width : 400, type : "text", sortable : true, sortProp : "text", sortMethod : qx.util.Compare.byIntegerString }, filesize: { label : "Filesize", width : 75, type : "text" }, lastchanged: { label : "Last changed", width : 75, type : "text", sortable : true, sortProp : "text", sortMethod : qx.util.Compare.byIntegerString } }; // Create Content var ranks = new Array(); ranks.push({ filename: { text : "test.txt" }, filesize: { text : "12 KB" }, lastchanged: { text : "03.08.2008" }}); ranks.push({ filename: { text : "test2.txt" }, filesize: { text : "122 KB" }, lastchanged: { text : "03.08.2008" }}); ranks.push({ filename: { text : "test3.txt" }, filesize: { text : "123 KB" }, lastchanged: { text : "03.08.2008" }}); // Create and add listview var chart = new qx.ui.listview.ListView(ranks, ranksHead); with (chart) { setTop(10); setRight(10); setBottom(10); setLeft(10); } chart.addToDocument(); chart.addEventListener("click", function(event) { if (event.getTarget() instanceof qx.ui.listview.ContentCellText) { var listView = event.getCurrentTarget(); var selItem = listView.getPane().getSelectedItem(); if (selItem) { alert(selItem["filename"]["text"]); } } }, this); Best regards, Denis -- View this message in context: http://www.nabble.com/Adding-eventHandlers-to-a-listview-item-tp18998474p18999868.html Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel