Hi Agustin,

On 05/01/07, Agustin Almonte F. <[EMAIL PROTECTED]> wrote:
> Hi, can anyone help me with an example of a listener for changes in a table
> cell. Does this event know the row and column for the change?
>
> An example would be great.
>

There's a dataChanged event which comes from the TableModel (which
sits behind the Table and holds the data). You'll see it if you click
on 'Show inherited' for Events on this page:

    http://api.qooxdoo.org/#qx.ui.table.SimpleTableModel

If you expand the event you'll see that the row and column ranges are
also supplied. I have some code that uses it that looks like this:

 table_model.addEventListener("dataChanged", function (e) {

                    var change_info = e.getData ();

                    var first = change_info['firstRow'];
                    var last  = change_info['lastRow'];

                    this.info("Data changed for rows " + first + " ..." + last);

                    var data = [];

                    for (var i = first ; i <= last ; i++)
                        {
                            data.push (table_model.getRowData (i));
                        }
...


Hope that helps,

Nick

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to