Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
I need a full grid refresh, but setRowData is not a function
[closed]
Closed as unclear by Karl Knechtel on Apr 15, 2026 at 19:42
This question cannot be answered in its current form, because critical information is missing.
This question was closed; new answers can no longer be added. Users with the Vote on Holds ability may vote to reopen this question if it has been improved or closed incorrectly.
My sources say, after major data changes, particularly if the self-generated row Id (my own getRowId) change, I need to rebuild the grid (gridOptions.rowData), and then use gridOptions.api.setRowData().
However, trying to do that, the only what I get if a "setRowdata is not a function" message, and that was it.
My searches in the recent Ag Grid source show only some references of this method in various interfaces, but not even an implementation.
How to do a full grid re-display?
1 answer
Currently, we have Ag Grid 35 and setRowData() was deprecated around at 31. This deprecation is cloudy in the documentation, can not be find easily by googling and LLMs do not seem knowing too much about them.
We had an incompatible API change below the radar.
The method currently to use, is:
gridOptions.api.setGridOption('rowData', your_row_data)
Also many other set... method were all unified under setGridOption('...'). Like setStyle or similars.

1 comment thread