Giter VIP home page Giter VIP logo

Comments (3)

AG-Zoheil avatar AG-Zoheil commented on June 9, 2024

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

from ag-grid.

zuzu-1412 avatar zuzu-1412 commented on June 9, 2024

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 ?

from ag-grid.

tomasVizdal avatar tomasVizdal commented on June 9, 2024

Hi,
I have a similar issue. When I have an external filter and some rows are filtered out and I want to insert a new row at a certain position, let's say as 5th row, the new row is inserted as 5th row in the filtered grid, but my original intention was to set the new row as a 5th row in the overal grid (unfiltered one).

Is there a way to insert a row in a particular index into a grid while the grid is filtered?

I am setting the new row using applyTransaction, i.e. this.gridOptions.api?.applyTransaction({add: [newGridRow], addIndex: 4});

from ag-grid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.