Rendezvous with technology

Auto Filtering in AdvancedDataGrid

Posted by: Sameer on: August 14, 2007

I’ve written a small application showing how auto filtering can be used in an AdvancedDataGrid.

In the sample, the first two headers are TextInput control which are used as input for the text.

I’ve written a custom itemRenderer using TextInput. On the change event of the TextInput, filtering is applied to the dataProvider and the result is shown by the AdvancedDataGrid.

The sample is located here

Source code – The main application file, The itemRenderer

Also, the sample can be modified to create an Advanced Filtering mechanism.

3 Responses to "Auto Filtering in AdvancedDataGrid"

Very nice, this will be very useful

Hi, thanks for your post!

If you filter the first column and then the second column, the first one isn’t maintained and changes. Is there any way to apply multiple filters such as all GMC in the second column and then only a certain name with GMC as the second column?

Thanks!
Dan

You have to write a filterFunction which takes both the value of the first column header and the second column header into account while filtering.

Leave a Reply