angular-ui/ui-grid

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

クローズ

#5,653 opened on 2016/08/31

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

Repository metrics

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

説明

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

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