angular ui grid - How to acces sorted, paged and filtered data from a UIGrid -
i want access filtered , sorted rows if hidden in different pages.
the line below works long i'm not using pagination
$scope.gridapi.core.getvisiblerows($scope.gridapi.grid)
and can access rows using following lines in case, rows not sorted correctly.
var myrows = []; angular.foreach($scope.gridapi.grid.rows,function(v,k){ if(v.visible) myrows.push(v); });
is there simple enough solution this?
Comments
Post a Comment