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

Row is inserted at random position when the filter is active. #7868

Open
zuzu-1412 opened this issue Apr 19, 2024 · 2 comments
Open

Row is inserted at random position when the filter is active. #7868

zuzu-1412 opened this issue Apr 19, 2024 · 2 comments

Comments

@zuzu-1412
Copy link

I'm submitting a ... (check one with "x")

[x] bug report => see 'Providing a Reproducible Scenario'
[] feature request => do not use Github for feature requests, see 'Customers of AG Grid'
[] support request => see 'Requesting Community Support'

Current behavior
When I am doing an applyTransaction on a grid with no active filter ,the row is inserted just below the row which triggers applyTransaction but when a filter is active the new row gets inserted at random position.

Expected behavior
I want the new row to be inserted just below the row that triggers applyTransaction when the filter is in active state as well as non-active state.

Please tell us about your environment:
Windows 12

  • AG Grid version: 30.0.0

  • Browser:
    Chrome

  • Language: [all]

@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

@zuzu-1412
Copy link
Author

Hi Zoheil
Right now I don't have a plunker sample with me for the issue but let me try to explain my problem in words :
Suppose I have a grid and a button outside .
The button when clicked, inserts a row in the grid.
Let's have a grid now with some rows .
If I click the button now the new row gets inserted at the bottom.
Now use a text filter on the row and you have some fewer rows .
If I click the button the row is inserted at some random point, either top or bottom or in between.
Is there a way I can insert / show it at a specific position.

Also I tried adding index property in the apply transaction function but that also breaks when sorting is applied.
Why is this happening ?

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

2 participants