You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using cellRenderer component, and update rowData (eg. by pagination), error happened:
Uncaught (in promise) Error: AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.
at RowRenderer.getLockOnRefresh (main.esm.mjs:35062:13)
at RowRenderer.redrawAfterModelUpdate (main.esm.mjs:35017:10)
at RowRenderer.onPageLoaded (main.esm.mjs:34897:10)
at main.esm.mjs:1017:99
at VanillaFrameworkOverrides.wrapIncoming (main.esm.mjs:40789:39)
at main.esm.mjs:1017:80
at main.esm.mjs:1021:9
at Set.forEach ()
at processEventListeners (main.esm.mjs:1013:82)
at EventService.dispatchToListeners (main.esm.mjs:1027:7)
The text was updated successfully, but these errors were encountered:
I resolve it by gridApi.value.redrawRows + gridApi.value.setGridOption. This should be resolved by one method gridApi.value.setGridOption only but not two method. maybe this can assess if any cellRenderer then deal with the issue internally.
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.
when using cellRenderer component, and update rowData (eg. by pagination), error happened:
Uncaught (in promise) Error: AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.
at RowRenderer.getLockOnRefresh (main.esm.mjs:35062:13)
at RowRenderer.redrawAfterModelUpdate (main.esm.mjs:35017:10)
at RowRenderer.onPageLoaded (main.esm.mjs:34897:10)
at main.esm.mjs:1017:99
at VanillaFrameworkOverrides.wrapIncoming (main.esm.mjs:40789:39)
at main.esm.mjs:1017:80
at main.esm.mjs:1021:9
at Set.forEach ()
at processEventListeners (main.esm.mjs:1013:82)
at EventService.dispatchToListeners (main.esm.mjs:1027:7)
The text was updated successfully, but these errors were encountered: