I was looking into a problem similar to this a few days ago. I noticed in the Repeater.as framework code, that it ignores changes to the dataProvider collection that are of type CollectionEventKind.UPDATE. Thus, if you modify an item in the underlying data provider, the repeater will not update. If you add/remove an item, it will update.
Jon On Fri, Aug 14, 2009 at 2:54 AM, Roman Protsiuk<[email protected]> wrote: > > > And what if Object would not be generic Object but rather class > DataProviderContainer { [Bindable]public var dataProvider:ArrayCollection;} > I assume your dynamic property dataProvider on Object is not bindable. > > Roman Protsiuk > Software Engineer/Engineering Team Lead > > http://under.in.ua > > Kyiv, Ukraine (GMT+2) > mobile: +38 097 321 56 54 email: [email protected] skype: roman.protsiuk > linkedin: http://www.linkedin.com/in/romanpv blogspot: http://roma-ch.blogspot.com > > On Fri, Aug 14, 2009 at 12:53 AM, gmbroth <[email protected]> wrote: >> >> >> >> Hi, >> >> I'm having a bit of trouble using the following combination of data >> binding and Repeater and could use some enlightenment: >> >> <mx:ArrayCollection id="fred" > some data here... </mx:ArrayCollection > >> >> <mx:ArrayCollection id="measurements" > >> <mx:Object dataProvider={fred} /> >> </mx:ArrayCollection> >> >> <mx:Repeater id="measurementRepeater" dataProvider="measurements" > >> <my:Chart dataProvider="{measurementRepeater.currentItem.dataProvider"} /> >> </mx:Repeater> >> >> The intention is to have my chart bind to 'fred' via the Repeater >> iteration over "measurements", a kind of double-binding, I suppose. My chart >> component does render the initial data in 'fred' but doesn't respond to >> subsequent changes to 'fred', i.e., I'm not getting dynamic binding. But if >> I change the repeater line above to this: >> >> <my:Chart dataProvider="{fred}" /> >> >> then everything works as expected. Is there a way to do in MXML what I'm >> trying to do above? >> >> Thanks, Garry >> > > > >

