1 Reply Latest reply on Jul 19, 2011 9:29 PM by Chris Velevitch

    Search Filter DataGrid

    mattdwm Level 1

      I need to build a datagrid that has a search box that filters rows as a user types. I found a javascript library called DataTables that demonstrates this. Does anyone know if something like this already exists with the Flex DataGrid component?

        • 1. Re: Search Filter DataGrid
          Chris Velevitch Level 1

          It's actually quite easy to do. If you make the dataProvider an ArrayCollection you can create and attach a filter function to the ArrayCollection and on the TextInput you listen for TextOperationEvent.CHANGE and in the event handler update the filter value and then call refresh on the ArrayCollection.

          1 person found this helpful