Hello Tracy, Im experiencing same problem too, added that in my case the data in first row was repeated in next row when i insert data on database and load all data in datagrid.(although the list is < 10)
I use remoteobject to save and get all the list of data. When i save the data and get successful save, I simply call the ListEvent, in the result handler, for dispatch and update the arraycollection of data. Im using a renderer to format the display of date. here is the code snippet in datagrid column and renderer itself: <mx:DataGridColumn headerText="Start Time"> <mx:itemRenderer> <mx:Component> <buscomp:DateTime startDate="{data.startTime}"/> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> ...in the renderer.. <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="formattingDate();" > <mx:Script> <![CDATA[ [Bindable] public var startDate:Date; [Bindable] public var finalDate:String; public function formattingDate():void { // create a utility that format the date& time to MM/DD/YY hh:mm:ss this.finalDate = dateformat.format(startDate)+' '+startDate.getHours() +':'+startDate.getMinutes(); } ]]> </mx:Script> <mx:DateFormatter id="dateformat" formatString="MMM-DD-YYYY"/> <mx:Label text="{finalDate}" styleName="myText"/> </mx:HBox> ...im just wondering why the data in first got duplicated in next row? does datagrid has some sort of cache? becuase from my previous code (e.g user listng) the datagrid just work fine everytime i save and get the list of data.the data i just save was reflected on the datagrid (no duplication). Thanks a lot. Cheers. Tracy Spratt 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? > > > > > -- View this message in context: http://www.nabble.com/Slow-datagrid-updates-tp21293013p21314517.html Sent from the FlexCoders mailing list archive at Nabble.com.