Reputation: 694
When I inline edit a group title, the whole group gets moved to the bottom of the table. How can I avoid this from happening and maintain the initial order?
How it looks like when the page first load:
How it looks like once I edit the title of the first group:
Upvotes: 0
Views: 315
Reputation: 694
By default, when I update the group title, the grid does a delta change and adds one more row to represent this group while not touching the DOM with the remaining rows.
There is a property in gridOptions
called deltaRowDataMode
that is set to true
by default. Setting it to false
solves the problem. Bear in mind that if you have a table displaying a large number of rows, this solution could decrement performance.
NOTE: as of today's date, there is nothing in the ag-grid documentation explaining about deltaRowDataMode
or an in-depth explanation about the delta change.
Upvotes: 1