Make sure your filter function returns true for some of the data

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of stinasius
Sent: Tuesday, August 05, 2008 10:14 PM
To: [email protected]
Subject: [flexcoders] Re: filtering a flex datagrid using a slider with
two thumbs



hi i tried just that but nothing shows up in my datagrid when i filter
it. what could be the problem? here is my update filter function

public function filterGrid():void{
dataAr.filterFunction=cityFilter;
dataAr.refresh();
//dgrid.selectedIndex = null; 
}

public function cityFilter(item:Object):Boolean{
var result:Boolean=false;

if ( (city_cb.selectedLabel == "All" || item.city ==
city_cb.selectedLabel) && (lct_cb.selectedLabel == "All" ||
item.location == lct_cb.selectedLabel) && (item.value >
priceSlider.values[0] && item.value < priceSlider.values[3000000])
){
result=true; 
} 
return result; 
} 



 

Reply via email to