Hi mailing list ;)

I built a table. One of its cells in each row shows an image pointing out to
be a delete "button" (I couldn't find any possibility to use a real button).
If users click on this image cell, the image-containing row should be
deletet. It works fine, a cellClick event handles clicks to the table and
filters if the user clicked the delete-image cell. But: cellClick event
fires twice! The next row below also is deleted everytime I try to kill one
row.

Here come some relevant parts of my code:

        this.tableModel.setData(this.renderDataArray());
        this.table = new qx.ui.table.Table(this.tableModel);
        this.table.addListener('cellClick', this.onCellClickHandler, this);


onClick handler:

        onCellClickHandler : function(event)
        {
            if (event.getColumn() == 10) {
                if (confirm('Wirklich loeschen?')) {
                    this.tableModel.removeRows(event.getRow(), 1);
                }
            }
        }


The confirmation dialog pops up, if confirmed the row is deleted and it is
shown second time. If I don't confirm it the first time, it does not come
for second round and only appears again when I click a delete image / cell
(as it should normaly do).
Table itself looks as it is forced to, data is shown correctly,
inline-editing in specific rows works.


Thank you for help ;)



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Table-s-cellClick-event-fires-twice-tp7581301.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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to