2

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)?

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
Ngoc Nam Nguyen
  • 493
  • 6
  • 15

2 Answers2

4

After playing around, I found that adding showLoadingOverlay() to onRowDataChanged event solves the problem

Audwin Oyong
  • 2,247
  • 3
  • 15
  • 32
Ngoc Nam Nguyen
  • 493
  • 6
  • 15
0

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

Laker
  • 1,622
  • 4
  • 20
  • 32