Re: [flexcoders] filter arraycollection with checkbox acting wired

2009-02-13 Thread Henrique
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

Re: [flexcoders] filter arraycollection with checkbox acting wired

2009-02-13 Thread Haykel BEN JEMIA
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

RE: [flexcoders] filter arraycollection with checkbox acting wired

2009-02-09 Thread Tracy Spratt
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

[flexcoders] filter arraycollection with checkbox acting wired

2009-02-09 Thread johndoematrix
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