2 Replies Latest reply on Mar 21, 2009 8:23 AM by Newsgroup_User

    AdvancedDataGrid Row Data Integrity

    trivinci
      Hello,

      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:
      Score Title
      10 Title-1
      20 Title-2
      30 Title-3
      40 Title-4

      The ADG might display it like this after reload (or sorting)
      Score Title
      40 Title-3
      10 Title-2
      20 Title-4
      30 Title-1

      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:

      Score Title
      40 Title-3
      10 Title-2
      10 Title-4
      30 Title-1

      (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?

      Thanks!