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

Table goes empty if filter options are not available after data update #7819

Open
danieldavidraj opened this issue Apr 7, 2024 · 3 comments

Comments

@danieldavidraj
Copy link

danieldavidraj commented Apr 7, 2024

I'm submitting a ...

May be a bug report or a support request

I am using this.gridApi.setGridOption("rowData", data); to update the row data but if any of the options are not available after updating the rows, then the table becomes empty after another data update.

Clear Explanation:

These options are available for filtering for this data and I have selected Down Switch.

image

After updating the data, only these options are available for filtering and Down Switch is not available. When I update the data again, Down Switch becomes available but it's not being selected as it was not available previously, so the table goes empty:

image

Please tell us about your environment:
npm 10.2.4
node v20.11.1

  • AG Grid version: 31.0.1

  • Browser:
    'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36'

  • Language: [TypeScript 4.8.2]

@danieldavidraj danieldavidraj changed the title Updating the rows are resetting the filters applied Table goes empty if filter options are not available after data update Apr 9, 2024
@AG-Zoheil
Copy link

Hi

Thank you for reporting this.

We'd be happy to look into this, but the most efficient way for us to do so would be for you to provide a live example reproducing the issue.

Please send us a live plunker sample which shows the issue. You can use one of the examples from our website as a starting point. Do let us know if you need further guidance on this.

We're looking forward to your response.

Kind regards,
Zoheil

@danieldavidraj
Copy link
Author

Sure will do that.

@cgferrari
Copy link

cgferrari commented May 1, 2024

Hi! I have been experiencing the same issue. I noticed that this hasn't had any movement in 2 weeks so I created a repo on my github to replicate the issue with steps to follow for reproduction. Please let me know if you have any additional questions. I look forward to hearing back, thanks!

Repo here: https://github.com/cgferrari/ag-grid-filter-bug

Some Demos:
image
2024-05-01_10-23-29

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

No branches or pull requests

3 participants