Hi,
Is it possible to add the extra element when initially crating the 2D array
collection. If the AC help a named object then all that would be required is
adding a new property to that object.
> for(i=0; i<src.length; i++){
> record = src.getItemAt(i) as ArrayCollection;
> record.addItem( new MyElement() );
> }
Which it likely to be slow. to improve I’d:
- move src.length outside of loop
- access the array in the array collection rather than using getitemAt
- turn collection updates off while doing and refresh at end if you need
bindings to fire
Thanks,
Justin