Search code examples
ag-gridag-grid-angular

Is there a way to prevent AG grid from hiding the loading spinner?


I'm using AG Grid in Angular and I have a loading spinner that I want to show and hide based on an observable, but it seems like AG Grid is hiding the spinner when the rowData is populated. Is there a way to make AG Grid ignore the rowData and only hide the spinner when I want it to be hidden?


Solution

  • As far as I could see, new spinner API (with ag grid v32+) grants you better control over spinner. https://www.ag-grid.com/javascript-data-grid/overlays/#loading-overlay

    I have used AgGrid since v25, so I've created custom spinner logic and separate component for all loading actions.