1) I call disableAutoUpdate() on an ADG's dataProvider (an 
ArrayCollection added as mx:HierarchicalData).

2) I add a thousand items to the grid.

3a) If I now call items.enableAutoUpdate(), things work fine, but the 
refresh takes a really long time, because a thousand events are 
fired. There's actually a comment in the ListCollectionView code 
saying this might be a problem.

3b) So instead, I call refresh() on the ArrayCollection. The thousand 
items get added very quickly, but the grid has no vertical scrollbar. 
I can tell the items are there, because a few of them appear when I 
resize the grid.

In ListCollectionView.internalRefresh(), it looks like very little 
happens unless there's a sort or filter function. The pending updates 
queue is deleted, and a COLLECTION_CHANGE event is dispatched. Maybe 
that's enough...

Is there anything I can do about this? Is there a function which will 
specificall recalculate and render the scrollbar? Or do I have to 
optimize ListCollectionView.handlePendingUpdates myself?

Reply via email to