angular-ui/ui-grid

Csv/Excel export not functioning properly on external pagination.

クローズ

#6,727 opened on 2018/05/15

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (2,496 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (5,395 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド