Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filters are not getting reset after loading new data to grid based on selected date #606

Closed
pacificeyes opened this issue Dec 19, 2015 · 3 comments

Comments

@pacificeyes
Copy link

HI,
I'm using the date field as a selection criteria for populating the grid.
I want to reset the previously applied filters once the new data is about to be loaded in grid.
However, the filters are not getting removed and the menu icon for filter is showing additional values under select boxes which is very confusing in case the grid has less number of rows.
Please assist me in getting this resolved.

@pacificeyes
Copy link
Author

The resolution of this issue will really be a great help.

@ceolter
Copy link
Contributor

ceolter commented Jan 4, 2016

The default behaviour for the filters is to clear when new data is loaded. To override this, you add the property: newRowsAction: 'keep'

For example, in the test drive, "Country" and "Language" have this set, but "Game of Choice" does not. So when you set filters in these three columns, then reload the data (eg change the number of rows), then two of the three columns keep the filters, but the last gets cleared.

If you are not experiencing this, then something mush be wrong in your code? Can you provide a plunker? (otherwise i'm nothing to work on)

@ceolter ceolter closed this as completed Jan 4, 2016
@MijanurR
Copy link

MijanurR commented May 6, 2016

I have used { cellHeight: 100, values: colname }. but still filter not getting changed.

case-FAIL: if i open filter dropdown and load new data
case-OK: if i do not open filter dropdown and load new data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants