flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krüger, Olaf <OKrue...@edscha.com>
Subject AW: DG (class is not an IEventDispatcher)
Date Fri, 12 Dec 2014 09:30:36 GMT
> I'm guessing that the 'set data()' function is preferred over the 'prepare()' function
but I seem to recall reading somewhere that 'prepare()' is more efficient.
I'm always override the 'set data()' setter if I have to do something 'special' inside the
ItemRenderer, but I don't know if this is the most efficient way.
The most examples out there, also these provided by adobe, are using this way I think.



-----Ursprüngliche Nachricht-----
Von: DavidM [mailto:dmoshal@gmail.com]
Gesendet: Freitag, 12. Dezember 2014 09:40
An: users@flex.apache.org
Betreff: Re: DG (class is not an IEventDispatcher)

Olaf,

Both my examples above work, even though dataField is not specified.

It would appear that the GridItemRenderer triggers on row changes, not data
field changes.

This makes sense to me because often you want to create a nested structure in a cell that
reacts to more than one datafield.

I'm guessing that the 'set data()' function is preferred over the 'prepare()' function but
I seem to recall reading somewhere that 'prepare()'
is more efficient.

>From what I can see in the debugger, they both get called, set data() before
prepare()

Any thoughts?

Dave



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/DG-class-is-not-an-IEventDispatcher-tp9124p9130.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
[Merry Christmas - Frohe Weihnachten - Feliz Navidad - Joyeux Noel - Vesele Vanoce]

________________________________

Edscha Holding GmbH
Sitz der Gesellschaft: Remscheid
Registergericht: Wuppertal, HRB 22889
Geschäftsführung: Francisco J. Riberas Mera, Francisco López Peña, David Vázquez Pascual,
Torsten Greiner, Markus Kirchner, Hans-Peter Schulz und Volker Weiss

Vertretungsberechtigt sind nur Geschäftsführer und schriftlich Bevollmächtigte.

Solely Managing Directors or employees with a written proxy have got power of representation.

Der Inhalt dieser E-Mail einschließlich etwaiger beigefügter Dateien ist vertraulich und
nur für den Empfänger bestimmt. Sollten Sie nicht der bestimmungsgemäße Empfänger sein,
ist Ihnen jegliche Offenlegung, Vervielfältigung, Weitergabe oder Nutzung des Inhalts untersagt.
Bitte informieren Sie in diesem Fall unverzüglich den Absender und löschen Sie die E-Mail
einschließlich etwaiger beigefügter Dateien von Ihrem System. Vielen Dank.

The contents of this e-mail including any attachments are confidential and may be legally
privileged. If you are not the intended recipient, any disclosure, copying, distribution or
use of its contents is strictly prohibited, and you should please notify the sender immediately
and then delete this e-mail including any attachments from your system. Thank you.

Mime
View raw message