angular-ui/ui-grid

Unable to retain the sort order while exporting to PDF or CSV

已关闭

#5,653 创建于 2016年8月31日

 (1 条评论) (0 个反应) (0 位负责人)JavaScript (2,496 个派生)batch import
good first issue

仓库指标

星标
 (5,395 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Hi,

I am sorting the UI-Grid by using $scope.gridApi.saveState.restore($scope, converObjectToGrid); In UI its displaying as expected but when i export to PDF or CSV the sort order is not maintained in Exported file.

Export to PDF Function as bellow : var grid = $scope.gridApi.grid; var rowTypes = uiGridExporterConstants.ALL; var colTypes = uiGridExporterConstants.ALL; uiGridExporterService.pdfExport(grid, rowTypes, colTypes);

Please find the attached screenshot's before exporting and exported data imh grid

img2

贡献者指南