Auto Filtering in AdvancedDataGrid

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.

Advertisements

3 thoughts on “Auto Filtering in AdvancedDataGrid

  1. 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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s