Hi, I would like to share some tricks I use for using the table widget.
I use a qx.ui.table.Table for editing data. As direct editing doesn't work for non TextField widgets, I use a separate editing panel. For my needs, focused row must be equivalent to selected row (single selection). var selMod = tbl.getSelectionModel() selMod.setSelectionMode(qx.ui.table.SelectionModel.SINGLE_SELECTION); tbl.moveFocusedCell = function(deltaX, deltaY) { if (deltaY != 0) { var tableModel = this.getTableModel(); var row = qx.lang.Number.limit(selMod.getAnchorSelectionIndex() + deltaY, 0, tableModel.getRowCount() - 1); selMod.setSelectionInterval(row, row); } } Unless the table is empty, a row must always be selected. This can be accomplished by: selMod.removeSelectionInterval = function() {} Finally I don't need the focus indicator (that shows the focused cell): var scrolers = tbl._getPaneScrollerArr(); for (var i = 0; i < scrolers.length; i++) { scrolers[i]._updateFocusIndicator = function(){}; } Do you think it is appropiate to add some of this behaviours to the Table class? Regards David -- View this message in context: http://www.nabble.com/Tip-for-editing-data-with-tables-tf2232222.html#a6187380 Sent from the qooxdoo-devel forum at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel