There is enable/disableAutoUpdate, but adding rows one at a time is
inefficient.  Just concat the two arrays and replace the dataprovider

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of whatabrain
Sent: Thursday, July 31, 2008 3:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to temporarily stop a dataProvider from
updating UI

 

I've found that adding a lot of rows (1000+) to an AdvancedDataGrid can 
be quite slow, if the rows happen to be visible (in an open node of the 
tree). I don't know why this is the case, especially since it's not the 
case in a regular DataGrid, but I'd like to work around it.

So how can I tell the AdvancedDataGrid to temporarily ignore updates to 
the dataProvider? Once the large number of rows have been added, I'll 
turn the automatic updating back on, for the slow trickle of updates 
that come after that.

 

Reply via email to