What's the type of your property pizza? Boolean? yes/no is not Boolean...
If you have Boolean values, you have to do like this..
private function processFilter(item:Object):Boolean {
return Boolean(item.value) == true;
}
Or... string values, yes/no values:
private function processFilter(ite
Try this (not tested!):
private var pizzaSelected:Boolean;
private function pizzaFilter():void
{
pizzaSelected = pizza_ckb.selected;
filterGrid();
}
private function filterGrid() :void
{
pizzaAr.filterFunction = myFilterFunction;
pizzaAr.refresh();
}
private function myFilterFunction(it
johndoematrix
Sent: Monday, February 09, 2009 8:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] filter arraycollection with checkbox acting wired
hi i am trying to filter an array collection using a checkbox, but
when i select the check box all the data disappears. here is my filter
function
hi i am trying to filter an array collection using a checkbox, but
when i select the check box all the data disappears. here is my filter
function
private var pizzaSelected:Boolean;
private function pizzaFilter():void {
if (pizza_ckb.selected == true)
pizzaSelected
4 matches
Mail list logo