angular-ui/ui-grid

Csv/Excel export not functioning properly on external pagination.

已關閉

#6,727 建立於 2018年5月15日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (2,496 個分叉)batch import
help wanted

倉庫指標

星標
 (5,395 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南