angular-ui/ui-grid

Csv/Excel export not functioning properly on external pagination.

Open

#6.727 geöffnet am 15. Mai 2018

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.496 Forks)batch import
help wanted

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide