Are you using a collection to populate
your DataGrid? If so, the filterFunction property on ICollectionView will
re-execute as changes to the collection are made and thus filter items on the
fly. If that is not happening try calling refresh() on your collection to
re-trigger the filterFunction.
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of djbrown_rotonews
Sent: Thursday, May 04, 2006 8:06
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] re-filtering
data in DataGrid?
I know that the DataGrid
has a filterFunction param where you can
specify any filtering capabilities you want to display in the
DataGrid. Can this function call be re-issued programmatically? I've
got an app where I want to display some data from a jsp call, filtered
based on initial (and default) values of some combo boxes, but
also "re-filtered" again if the user selects another value from the
combo box without re-calling the jsp again. Is that possible?
I'm willing to add a button called "filter" to capture the current
states of the combo boxes and trigger the filterFunction call again if
that helps. The filterFunction expects one arg though, so a straight
call to filterData() from the filter button's click method won't do
the trick.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] re-filtering data in DataGrid? Deepa Subramaniam
-