You don't have to do a deep copy. Use ListCollectionView instead, which allows you to apply different filters to the same underlying Collection. Cheers Ralf.
On Tue, Jul 1, 2008 at 11:58 AM, linko27 <[EMAIL PROTECTED]> wrote: > I need to show two lists with different filter function on the same > dataprovider. Therefore I have to make a deep copy of the array for > the second list, otherwise the second filter will not include the > items filtered by the first filter - is'nt it? > > --- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote: >> >> ----- Original Message ----- >> From: "linko27" <[EMAIL PROTECTED]> >> To: <flexcoders@yahoogroups.com> >> Sent: Tuesday, July 01, 2008 10:08 AM >> Subject: [flexcoders] Hide a list item without changing (filtering) the >> dataprovider? >> >> >> > Hallo! >> > >> > How can i hide a list item. I am trying to make a lists and hide the >> > 'mandatory=true' items without changing (filtering) the dataprovider. >> >> A filter function on the dataprovider is the way to go. It doesn't > alter the >> data in the dataprovider permamently and is the only way to have > your list >> populate correctly. >> >> Why don't you want to filter the dataprovider? >> >> Paul >> >> snip >> > >