angular-ui/ui-grid

Csv/Excel export not functioning properly on external pagination.

Open

#6 727 ouverte le 15 mai 2018

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (2 496 forks)batch import
help wanted

Métriques du dépôt

Stars
 (5 395 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Please take a look at this link for below issue. http://ui-grid.info/docs/#!/tutorial/405_exporting_all_data_complex

Csv/Excel export is not working correctly. For example, if you use above link and try to export all data as csv file, this exception is thrown and it calls back end to get all data. Once the back end call successful, then if you'd click that export option again, then it will work. So this is very inconsistent.

Cannot read property 'forEach' of undefined at Grid.modifyRows (ui-grid.js:4958) at ui-grid.js:19601 at processQueue (angular.js:17145) at angular.js:17193 at Scope.$digest (angular.js:18331) at Scope.$apply (angular.js:18628) at done (angular.js:12619) at completeRequest (angular.js:12863) at XMLHttpRequest.requestLoaded

Similarly, export to excel feature does not seem to be working. Below is the exception I see.

Cannot read property 'styles' of null at Object.formatAsExcel (ui-grid.js:20274) at ui-grid.js:20389 at processQueue (angular.js:17145) at angular.js:17193 at Scope.$digest (angular.js:18331) at Scope.$apply (angular.js:18628) at HTMLButtonElement. (angular.js:27456) at defaultHandlerWrapper (angular.js:3785) at HTMLButtonElement.eventHandler

Guide contributeur