Csv/Excel export not functioning properly on external pagination.
#6727 aperta il 15 mag 2018
Metriche repository
- Star
- (5395 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
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