Thanks Sudhi, Friend, I didn't get exactly what u meant by, could please clarify more,
I'm clear with the function u wrote, but, I didn't get what u meant by following line. dataProvider.filterFunctions = [filterByCol] ; my service is HTTP and I'm using dataprovider inside datagrid's MXML tag. could u please clarify what u meant by dataProvider.filterFunction and [filterByCol]. what is coming between [ ]? On Mon, Mar 16, 2009 at 10:30 AM, sudhi <[email protected]> wrote: > > Dear uFrameWork, > > You can do one thing you can have a filtering function for the > dataprovider like this. > > dataProvider.filterFunctions = [filterByCol] ; > > public function filterByCol( item:Object ):Boolean > { > if( item.Col == selectedValue ) > { > return true; > } > else > { > return false; > } > } > > Col is the column name of your datagrid and > selectedValue is the vlaue to be compared > > Regards > Sudhi > > > > -- Thanks and Later. uFramework. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

