I'm loading an ADG from an ArrayCollection. Fields are
rendered via a couple of custom itemRenderers. Two fields, "score"
and "title". The ADG uses my ArrayCollection as its dataProvider
via data binding.
On initial load, the scores and titles match up. However,
when I reload the the ArrayCollection from my webservice, the
scores and titles don't match up anymore. I've verified (via
trace()) that the ArrayCollection maintains its integrity. IOW,
scores and titles match up properly in the dataProvider. However,
the ADG mixes them up.
Where my ArrayCollection may look like this:
The ADG might display it like this after reload (or sorting)
And the effect seems completely random. Each time, I seem to
get a different matchup. I've even seen it drop and replace a
random entry, like so:
(No score of "20").
My underlying ArrayCollection always has the proper data with
proper row data integrity.
Any idea what would cause this, and more importantly... any
ideas how to correct it?
"Greg Lafrance" <firstname.lastname@example.org> wrote in
> We may need to see simplified yet complete code with
sample data, as it
> might be your itemRenderers. I know they are recycled
for efficiency, so
> that may be where the problem lies.
To add to what Greg said, you might want to look at Q2: