Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
IgGrid - ComboBox filter reset after dataSource update
posted

Hi,

We are using an igGrid with a comboBox to filter one column.
We also have a searchBar outside igGrid to fetch and refreh the dataSource from a SQL query.
We fetch the data in Ajax and then update the igGrid("option", "dataSource", data) in jquery

Here is the problem : after checking a few comboxBox, we noticed that changing the dataSource will reset the comboBox and keep only the last one.
Here is a fiddle to test it, forked from your Excel-style Filtering fiddle : jsfiddle.net/.../

Step to reproduce :
- Select 2 or 3 checkboxes from Category column

- click the refresh button at the bottom

The igGrid will refresh the dataSource but the combobox will unchek except the last one.

As you can see the dataSource.settings.filtering.expressions contains multiple objects for the same FieldName and i assume the igGridFiltering('filter') function look up only for the last object instead of adding them.

I try to concatenate them into one object with multiple Expression but it doesnt works either.