Skip to content

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

@Shreeshag

Description

@Shreeshag

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions