Two ArrayCollections pointing at the same source should be working with
references to the items, so you shouldn't need to "transfer data". I
believe that if you slice the source array and wrap it with an
ArrayCollection, then changes to the item objects via the AC API will
actually apply to the base array.  Test that to be sure.

 

If that does not work, and users can update the data through the
restricted AC, then you might have to explicitly update the real source.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of richcianci
Sent: Wednesday, June 25, 2008 10:31 AM
To: [email protected]
Subject: [flexcoders] Re: Restrict the number of records viewable in a
managed arraycollection

 

The managed ArrayCollection IS the DG.dataProvider. Are you saying I
need to keep 2 ArrayCollections per DG, one managed and one unmanaged
and transfer data between the two?

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> In the result handler, just select the desired items, and assign them
to
> the DG.dataProvider.
> 
> Tracy
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of richcianci
> Sent: Tuesday, June 17, 2008 5:08 PM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Restrict the number of records viewable in a
> managed arraycollection
> 
> 
> 
> Hello,
> 
> Is there a way for me to restrict the number of rows a user can see in

> a datagrid? I have a datagrid whose datasource is a large managed 
> arraycollection that is being constantly added to/updated by a 
> streaming process. The client want the user to only see the first 200 
> rows of the collection. Is there a relatively easy way to keep the 
> user's view of the restricted in this way?
>

 

Reply via email to