Thanks for your reply Tracy, no i currently am not using renders in the grid just a simple two column grid which has a value changed upon button click and I'm not using Vbox just absolute layout.
the reason i dont care about undo is that the user can change the value back by just clicking the button again. i dont see anything that might throw off the grid but i'm going to try to just put the grid into its own canvas and test it with only a few items instead of this entire application. --- In flexcoders@yahoogroups.com, "Tracy Spratt" <tspr...@...> wrote: > > That is not normal behavior. Typically such updates happen nearly > instantly. > > > > First, are you using custom itemRenderers? If so, how many are visible > at any one time? Are they optimized for performance, or are they based > on a container, like Vbox? > > > > Next, you understand that when you do: > > mccert_refund_grid.selectedItem.CERTPRESENT = "NOT PRESENT"; > > you ARE updating the dataProvider? selectedItem is a reference to a > dataProvider item. > > > > If you want to be able to provide an "undo" capability, you will need to > make a copy of the data before allowing the user to modify it. > > > > Debug to find out where the speed bottleneck happens. Simplify the > conditions until the problem goes away, then re-apply functionality > until the problem returns. > > > > Tracy > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Jason B > Sent: Monday, January 05, 2009 10:26 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Slow datagrid updates > > > > I'm using a datagrid with httpservice then allowing the user to click > on an item in the datagrid. > > once they select the datagrid item they then hit a button which > updates the value in the grid like this, > mccert_refund_grid.selectedItem.CERTPRESENT = "NOT PRESENT"; > > trouble is the datagrid takes almost 20-30 seconds to update it i > kinda need this to happen instantly since its all locally cached it > should be fast. > > i looked into datagrid refresh but my understanding is that is for the > dataprovider, and im not trying to refresh the data that would over > right their changes they made. when all is said and done they will be > able to hit another button to save results back to the database. > > so how come this is taking so long to change values? >