header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Vaibhav
Points:0
Posts:0

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




Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 8+5 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions