Look into ICollectionView, IViewCursor

http://livedocs.adobe.com/flex/201/html/about_dataproviders_057_01.html
http://livedocs.adobe.com/flex/201/html/about_dataproviders_057_07.html

regards,
Muzak

----- Original Message ----- 
From: "phdcpe01" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, September 15, 2007 3:56 AM
Subject: [flexcomponents] Datagrid with hideable rows


Hello,
I'm trying to do something that's similar to the Dashboard example on
Adobe, where a slider specifies which dates should be shown in a
datagrid. However, instead of using one slider, I'd like to have
multiple sliders (1 for the date, another for profit range, etc). The
slider example simply sorted the data according to date, and then
sliced the array at the ends. This isn't an option with my data, since
a sort on price may lead to something that isn't sorted on dates. What
I think is feasible is to have a function that sets a flag if a row
meets all sliders' conditions. I would like to then use that flag to
specify whether the data item shows up in the datagrid. Is that
possible? Or, is there a better solution?
Example:
Data items: Price   Date               <=Price Slider=>
              4.5    Jan 1             <=Date Slider=>
              2.6    Feb 1
              6.7    Mar 1

Person sets price slider to be from 2 to 5. Only first 2 show in grid.
User then Sets date to be Jan. Only 1st item shows in grid.



Reply via email to