FlexGridFilter

The FlexGridFilter extension (wijmo.grid.filter.js) allows you to add a filtering UI to any FlexGrid control.

The filtering UI adds filter icons to the grid's column headers. Clicking the icons brings up an editor where users can select the values to show (value filter) or they can set up conditions that must be satisfied by the values (condition filter).

You may also customize the filter to show specific types of filter on each column, as this sample does.

To use the extension, include the file in your page and enable filtering like so:

// add column filters to the flexGrid control
var filter = new wijmo.grid.filter.FlexGridFilter(flexGrid);

If you are using AngularJS, you can simply use the wj-flex-grid-filter directive:

<!-- create a FlexGrid with column filters -->
<wj-flex-grid ... >
    <wj-flex-grid-filter></wj-flex-grid-filter>
</wj-flex-grid>

Now showing {{data.items.length | number:0}} items.

Configure the filter

The FlexGridFilter class has properties and methods that allow you to customize the filter behavior. For example, you can turn off the filter icons, change the default filter type (value and/or condition), or change the filter type for specific columns.


Clear the filter, save and load filter definitions to local storage:

Set the default filter type: None Condition Value Both

Set the filter type for the "Downloads" column: None Condition Value Both

The filter editor is localizable: Arabic (U.A.E.) Basque Bulgarian Catalan Chinese Chinese (Traditional, Hong Kong SAR) Chinese (Traditional, Taiwan) Croatian Czech Danish Dutch English English (United Kingdom) Estonian Finnish French French (Canada) Galician German Greek Hebrew Hindi Hungarian Indonesian Italian Japanese Kazakh Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Swedish Thai Turkish Ukrainian