Hi Swaroop, Many thanks for ur inputs.
I have requriements to implement same as Excel auto filter functionality. You can see as in the attached files. Thanks, Jigs. On Sat, Jan 30, 2010 at 7:26 PM, sankar swaroop <[email protected]>wrote: > HI, > if u use attaycollection as dataprovider for the ADG then u can achieve > this. > > for example AC:ArrayCollection is the dataprovider for ur ADG > txtSearch is the id of TextInput that u type for search. > then > function filterADG():void > { > AC.filterFunction = filterAC; > AC.refresh(); > } > function filterAC(obj:Object):Boolean > { > if(obj.id.toString().toLowerCase().search(txtSearch.text.toLowerCase) > != -1) > return true; > else > if(obj.status.toString().toLowerCase().search(txtSearch.text.toLowerCase) > != -1) > return true; > else > return false; > } > call filterADG() function in change event of TextInput > this will work for both on id & status when u type for search in TextInput > > Thanks. > > On Sat, Jan 30, 2010 at 3:13 AM, jigs <[email protected]> wrote: > >> Hello, >> >> I am just started development with Flex 3. >> >> I have requirements to do the multiple filtering in the grid. I am >> using the Advance Data Grid. >> >> I have to implement functionality like currently available in excel >> 2007 for multiple filtering. >> >> E.g. I have 5 columns in ADG. >> >> id, name,age,notes,status. >> >> Now, i want to do the filter records with particular ids, and status >> out of available records. How can i achieve this functionality ? >> >> Thanks, >> Jigs. >> >> -- >> 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]<flex_india%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/flex_india?hl=en. >> >> > -- > 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]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- Best Regards, Jigar Vyas. -- 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.
<<attachment: filter.JPG>>

