How to configure a grid that is filled from rest service and is still filled, when coming back from another route in the application?
Going to another route and coming back to my view the grid is empty.
I have to do the following in onGridReady to get the grid filled:
this.gridApi = this.gridOptions.api;
this.columnApi = this.gridOptions.columnApi;
this.paginationController = this.gridApi.paginationController;
window.setTimeout(this.createNewDatasource, 1000);
I think the problem is in grid-options.bind="gridOptions" column-defs.bind="columnDefs" .
These will rebind the values coming back from another route.
How to configure a grid that is filled from rest service and is still filled, when coming back from another route in the application? Going to another route and coming back to my view the grid is empty. I have to do the following in onGridReady to get the grid filled: this.gridApi = this.gridOptions.api; this.columnApi = this.gridOptions.columnApi; this.paginationController = this.gridApi.paginationController; window.setTimeout(this.createNewDatasource, 1000);
I think the problem is in grid-options.bind="gridOptions" column-defs.bind="columnDefs" . These will rebind the values coming back from another route.