On Wed, May 25, 2011 at 22:13, <[email protected]>wrote:
> I've been working with the Abstract table model recently and in the
> documentation for the dataChanged event it says
>
> "Fired when the table data changed (the stuff shown in the table body). The
> data property of the event may be null or a map having the following
> attributes: ....."
>
> Given that description I assumed that firing the event with null as the
> data parameter would signify the whole table needs updating, but when I
> attempted it the qx.ui.table.Table throws an error:
>
> "TypeError: Cannot read property 'firstRow' of null"
>
> I attemped it just omitting the data parameter from fireDataEvent with a
> similar result ("undefined" instead of "null")
>
> Is the documentation or the behaviour of the table/tableModel wrong in this
> instance?
>
> An example using Simple table model can be found here: http://goo.gl/JmDHG
Hi Nick,
I think you've misunderstood events in qooxdoo. In general, _you_ don't fire
events to the widgets; rather, you listen for events that are fired _by_ the
widgets. That is true of the "dataChanged" event in the table model. When
the data model gets changed, e.g. by the user editing a cell in the table,
the "dataChanged" event is fired so that your program can determine that the
data changed, and possibly act on that change (maybe by sending the altered
data to a server someplace).
I'm not quite sure what it is you're actually trying to accomplish, though.
You haven't provided nay data to be displayed in the table. What do you
expect to be happening?
You should probably have a look at some table demos, such as:
http://demo.qooxdoo.org/1.4.x/playground/#Table
Cheers,
Derrell
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel