ag-grid / ag-grid-aurelia

Aurelia wrapper for ag-Grid project
MIT License
23 stars 8 forks source link

How to configure ag-grid to not loss datasource on changing to other route #7

Closed stefan-gisworks closed 7 years ago

stefan-gisworks commented 7 years ago

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.

seanlandsman commented 7 years ago

Hi - closing due to inactivity

If this is still an issue please raise a new issue and I'll investigate