Look for stopEditing or something like that (can't access the API briwser right now). Cheers, Fritz
Fritz Zaucker Oetiker+Partner AG Aarweg 15 CH-4600 Olten +41 775 9903 On 06.01.2011, at 13:31, RobertW <[email protected]> wrote: > > I have a table with editable data. With a double click into a cell, the user > can change the data. But if the program changes the data of the table while > the user is in this edit mode, this specific cell keeps it current state > (old data, editable). I was looking for a way to either > > a) reset this state to the 'normal' state > Is there a way to change this state from the script side? > > or > > b) find a way to prevent the data change then. > I could not find an event/indicator that the user is editing a cell. > dataEdited is too late, and dblclick is not specific enough. > > Some hints how to solve this are much appreciated. > > > http://demo.qooxdoo.org/current/playground/#%7B%22code%22%3A%20%22%252F%252F%2520window%250Avar%2520win%2520%253D%2520new%2520qx.ui.window.Window%28%2522Table%2522%29.set%28%257B%250A%2520%2520layout%2520%253A%2520new%2520qx.ui.layout.Grow%28%29%252C%250A%2520%2520allowClose%253A%2520false%252C%250A%2520%2520allowMinimize%253A%2520false%252C%250A%2520%2520contentPadding%253A%25200%250A%257D%29%253B%250Athis.getRoot%28%29.add%28win%29%253B%250Awin.moveTo%2830%252C%252040%29%253B%250Awin.open%28%29%253B%250A%250A%252F%252F%2520table%2520model%250Avar%2520tableModel%2520%253D%2520new%2520qx.ui.table.model.Simple%28%29%253B%250AtableModel.setColumns%28%255B%2520%2522ID%2522%255D%29%253B%250A%252F%252FtableModel.setData%28createRandomRows%281000%29%29%253B%250AtableModel.setData%28%255B%255B1%255D%252C%255B2%255D%252C%255B3%255D%252C%255B4%255D%252C%255B5%255D%255D%29%253B%250A%250A%252F%252F%2520make%2520second%2520column%2520editable%250AtableModel.setColumnEditable%280%252C%252 > 0true%29%253B%250A%250A%252F%252F%2520table%250Avar%2520table%2520%253D%2520new%2520qx.ui.table.Table%28tableModel%29.set%28%257B%250A%2520%2520decorator%253A%2520null%250A%257D%29%250Awin.add%28table%29%253B%250A%250Avar%2520win2%2520%253D%2520new%2520qx.ui.window.Window%28%2522Button%2522%29.set%28%257B%250A%2520%2520layout%2520%253A%2520new%2520qx.ui.layout.Grow%28%29%252C%250A%2520%2520allowClose%253A%2520false%252C%250A%2520%2520allowMinimize%253A%2520false%252C%250A%2520%2520contentPadding%253A%25200%250A%257D%29%253B%250Athis.getRoot%28%29.add%28win2%29%253B%250Awin2.moveTo%2870%252C%252080%29%253B%250Awin2.open%28%29%253B%250Avar%2520button%2520%253D%2520new%2520qx.ui.form.Button%28%2520%2522Change%2520Data%2522%2520%29%253B%250Abutton.addListener%28%2522execute%2522%252C%2520function%28e%29%2520%257B%250A%2520%2520tableModel.setData%28%255B%255B%255D%255D%29%253B%250A%257D%29%253B%250Awin2.add%28%2520button%2520%29%253B%22%7D > Playground Example > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/Changing-table-data-while-editing-a-cell-tp5895404p5895404.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
