ebekker / blazor-ag-grid

Blazor-wrapped component over ag-Grid -- demo:
https://blog.bkkr.us/blazor-ag-grid
MIT License
60 stars 18 forks source link

Refresh issue #3

Closed ezzkht closed 4 years ago

ezzkht commented 4 years ago

The grid is not refreshing when the data changes. Manually calling grid.Api.RedrawRows() or grid.Api.RefreshCells() won't do the job either.

ebekker commented 4 years ago

Depending on how you're running this and what paging/caching behavior you have enabled, you may have to purge the cached data. Simply redrawing, just updates the DOM, and simply refreshing would still pull the data from cache if it's already been fetched.

The online example has support for this "Purge Rows" feature which is implemented here.