OK I figured out that modifying the array associated with the dataprovider for a repeater does not always trigger a change event. So I had to use the replaceItemAt method of the dataprovider to get it to update that section correctly.
 
Dan


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Diodati
Sent: Wednesday, December 07, 2005 11:54 AM
To: [email protected]
Subject: [flexcoders] repeater does not update when object in array for dataprovider changes

 
Hi I am using a repeater to render multiple sections on a screen. The dataprovider is an array of VO objects that each have a comments property.
 
When new sections are added dynamically I have to update the entire dataprovider(assign the array to the dataprovider again) to get the repeater to add the new section. The real problem I have is after that I need to assign some text to one VO object's comments. The text gets assigned to the object but the repeater does respond to the change of the VO object within the array(dataprovider). The only way I've been able to get the repeater to update its contents is to again assign the entire array to the data provider or to call the executeBindings method on the repeater. This causes all sections to be redrawn causing a them to disappear and reappear. I do not want to a refresh of the entire set of sections since it cause a big flicker. Is there a way to force a specific section(repeater instance) to update itself without redrawing all sections?
 
I also tried setting the recycleChildren property to true, but it did not seem to do anything.
 
 
Dan


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to