0

I can't find a way to get all the sorted row data in ui-grid when using pagination

$scope.gridApi.core.getVisibleRows() only shows what is visible on the page I am on

$scope.gridApi.grid.rows contains the original data unsorted

Is there anyway to access all the sorted data? I need to display parts of it elsewhere on the page in the exact same sorted state. Thanks.

1 Answer 1

1

I couldn't find anyway to access this data, but I found it could be generated by calling their sort method:

var sorted = grid.sortByColumn(grid.rows);

sorted now has the results I want.

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

1 Comment

This is exactly what I was looking for, from a very long time.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.