The dataProvider is a property of a Cairngorm VO. So, I have a productVO, of which images is a property (Array), so the dataProvider is product.VO - the thing is, the dataProvider IS being updated, its just the display that's not being displayed. As soon as I select another product, and then switch back to the product in question, or if I scroll up and then down in the TileList itself, the newly uploaded image appears.
thanks, Barry --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Are you using the dataPrvoider API to update the dataProvider? What is > the dataProvider? > > Tracy > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of calisza > Sent: Thursday, July 10, 2008 2:56 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Tilelist, ItemRenderer not refreshing when > updating dataProvider > > > > I have the following scenario, > > I have a tilelist displaying images, each of which is being created > via a custom ItemRenderer. > > So far so good. > > Now, I have an upload button, which when clicked, pops-up a > TitleWindow and allows the user to add files for upload. They click > upload and everything works perfectly, files get sent to server, file > gets saved and server sends back an XML response which I then use to > update the TileList ItemRenderers dataProvider. In other words, a new > image gets appended to the dataProvider array. > > Now this all works perfectly except for the following : The new image > is not displayed inside the TileList - at least not right away. As > soon as I scroll the TileList the new image appears. So what this > means is that the new image is only displayed when the TileList or the > screen is refreshed - however, I cannot find any way of doing this > programatically. > > I've tried using "super.commitProperties()" to no avail, unless I'm > calling it from the wrong place - currently calling it from a method > within my upload titleWindow. > > I've done all the usual searching, reading etc but I've come up blank. > Is there a way around this I'm just not seeing ? Any pointers in the > right direction would be greatly appreciated. > > thanks. >