[flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-10-01 Thread kyleashipley
Looks like we might have stumbled across a viable solution. Basically, we have a dataProvider ArrayCollection, then bindable ArrayCollections in the views. We set the source property of the bindable ArrayCollection to the original dataProvider, then apply the filters to the bound collection.

[flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-09-30 Thread kyleashipley
Sorry to dredge up an old thread, but I'm having a similar problem that can't be helped by the links provided. In our system, we have a shared list collection that is filtered in different ways for different views, but no button to enact the filter. For example, we have a list of users that

Re: [flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-09-30 Thread Scott Melby
iirc what I usually do is store my master list data (the one in my model) in an appropriate collection (more on this later). I then create a second ArrayCollection in each view that needs to filter and set the source of that one to the model collection (property that exposes an Array). I

Re: [flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-09-30 Thread Josh McDonald
Also something I do (and recommend), although I use ListCollectionView rather than ArrayCollection, as you don't need the (admittedly small) overhead of the internal ArrayList. -Josh On Wed, Oct 1, 2008 at 7:51 AM, Scott Melby [EMAIL PROTECTED] wrote: iirc what I usually do is store my master

[flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-07-01 Thread linko27
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

Re: [flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-07-01 Thread Ralf Bokelberg
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

Re: [flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-07-01 Thread Paul Andrews
- Original Message - From: linko27 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, July 01, 2008 10:58 AM Subject: [flexcoders] Re: Hide a list item without changing (filtering) the dataprovider? I need to show two lists with different filter function on the same

[flexcoders] Re: Hide a list item without changing (filtering) the dataprovider?

2008-07-01 Thread linko27
: [flexcoders] Re: Hide a list item without changing (filtering) the dataprovider? 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