I have a table that updates upon a click on a button. The objective it's to
update (reloadData) and then select the first row and get it's data; But
it's just null; If I run the getRowCount() I get 2.

How I've done:
 Added a listener to the tableModel "dataChange".
 When is fired I change the selectionModel to 0;
selectionModel.setSelectionInterval(0, 0);
 I get the selected row data; 
    selectionModel.iterateSelection(function(index) {
        selectedRow = tableModel.getRowData(index); // is single selection
    });

selectedRow is null...
What is the problem?

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Listening-on-the-dataChanged-event-and-getRowData-is-null-tp7580356.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to