angular-ui/ui-grid

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

Open

#5.653 geöffnet am 31. Aug. 2016

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.496 Forks)batch import
good first issue

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide