Prashanth
Prashanth

Reputation: 1305

Angular UI Grid - how to fetch sorted data from table

Upvotes: 0

Views: 363

Answers (1)

Shantanu
Shantanu

Reputation: 3513

Have you tried this:

$scope.gridApi.core.getVisibleRows()

Or you can use more precisely:

$scope.gridApi.core.getVisibleRows($scope.gridApi.grid);

This will give array of rows in grid (with current sort condition)

Upvotes: 0

Related Questions