5/5/2011 1:54:06 PM
Title:
Repeater tag does not adher to data binding
Hi,
I am having similar problem, when I have used data binding but the repeater does not repeat itself when the data source changes.
My Code::
<mx:Repeater id = "chartRepeater" dataProvider="{selectedSectors}" name="{chartRepeater.currentItem.toString()}">
<mx:HBox width="100%" height="100%">
<mx:LineChart id ="myChart"
width="100%" height="100%" name="xyz" showDataTips="true"
dataProvider="{model.simulation.getTenors(0,chartRepeater.currentItem.toString())}">
<mx:horizontalAxis >
<mx:CategoryAxis categoryField="sequence"/>
</mx:horizontalAxis>
<mx:series>
<mx:LineSeries yField="mediumValue" />
</mx:series>
</mx:LineChart>
</mx:HBox>
</mx:Repeater>
The Chart data was static initially and then when I added the function "executeBindings(true);", then, I saw the chage in my Charts. (when my dataSource was modifyied dynamically )
However, when I have my debuffer on the <mx:Repeater> after the data has been loaded initially and when i change the datasource (selectedSectors), I can see the change in selectedSectors but the debugger never comes to the <mx:Repeater> tag
In my output, my Chart data is displayed only for the modified datasource but for the rest, emplty charts are been seen.
Would appreciate any help :)
Thank you in advance