0

I need to have all data from ui-grid for exporting it to excel.

I know it has already export function with all options like pdf, excel etc.

I have a requirement to export it from our side. for that I need to have all data visible right now on grid.

I am not able to find out how to take data from ui-grid. I have multiple grids that's why I am not able to get $scope.gridapi

suggest something on this

1 Answer 1

1

I faced the similar situation. Lets assume we have two grids $scope.workflowGroup and $scope.workflowDetails.

you can get their data:

$scope.workflowGroup.data
$scope.workflowDetails.data

In case you need all the selected data,

$scope.filteredRows = $scope.gridApi.core.getVisibleRows($scope.gridApi.workflowGroup);

Hope this helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.