title: How to avoid the "no rows" message while loading data in ag-grid
body: <p>I have an ag-grid which pulls data from the backend via restful call and routed through NGRX pattern. </p>
  
  <pre><code>   &lt;ag-grid-angular #agGrid class="ag-theme-fresh" style="width: 100%; height: 100%;" [gridOptions]="gridOptions"
                   [rowData]="rowData"
                   [pagination]="true" [paginationAutoPageSize]='true' [enableSorting]="true"
                   [rowSelection]="rowSelection" [enableColResize]="true"
                   [enableFilter]="true" [rowClassRules]="rowClassRules" (rowClicked)="onRowClicked($event)"
                   (cellClicked)="onCellClicked($event)"
                   (gridReady)="onReady($event)"&gt;
  &lt;/ag-grid-angular&gt;
  </code></pre>
  
  <p>I have 2 scenarios where the grid loads the data.</p>
  
  <p><em>scenario 1:</em> The first time I load it on page load (via ngrx store )</p>
  
  <pre><code>  this.QueueItems$ = this.store.select(fromStore.getQueueItems);
  </code></pre>
  
  <p><em>scenario 2</em>:  The 2nd time I have a button which refreshes the data in the grid from another store.</p>
  
  <pre><code>     &lt;button mat-icon-button matTooltip="Refresh Grid" 
       (click)="handleOnGridRefesh($event)" matTooltipPosition="left"
        style="right: 2%;top: 0;margin-top: 7px;position: absolute;z-index:4"&gt;
       &lt;i class="fa fa-refresh" style="color:#455A64" aria-hidden="true"&gt;&lt;/i&gt;
        &lt;/button&gt;
  
  
     //note:getQueueItemsStore is a different store ( ngrx) from getQueueItems
     handleOnGridRefesh($event: any) {
  this.QueueItems$ = this.store.select(fromStore.getQueueItemsStore);
   }
  </code></pre>
  
  <p>My issue is after I click on the button to refresh the grid, there is a brief time delay of 500ms to 1 sec where the ag grid is pulling the data and displays the "No rows to show" overlay.</p>
  
  <p><strong>How can I transition smoothly without <a href="https://i.stack.imgur.com/2AU7w.jpg" rel="noreferrer">the overlay in between as shown here?</strong></a></p>