1
votes

I am working with Ag-grid and I found that only one of loading and no data overlays can be shown at a time.

My situation is that at the beginning, I have no data and a loading observable. I subscribe to that observable and manually call the grid api to setup the loading but it was later replaced by no data overlay due to the grid.

Is there a way to have both running (which I can use css for the loading overlay to hide the no data)?

Thanks in advanced.

2

2 Answers

2
votes

after playing around, i found that adding showLoadingOverlay() to onRowDataChanged event solves the problem

0
votes

Can't you just add your own overlay with desired condition in *ngIf and style it as you want?