You can hack the ng grid library by changing this line at ngViewport 
directives scrollbinding function.


ngGridDirectives.directive('ngViewport', [function() {
    return function($scope, elm) {
        .....

        elm.bind('scroll', function(evt) {
            .....
            $scope.adjustScrollTop(scrollTop);
           .....






change the line:
  $scope.adjustScrollTop(scrollTop);

to this:
   $scope.adjustScrollTop(scrollTop,true);

and it will work.

On Saturday, March 2, 2013 4:03:19 AM UTC+6, Caleb Olin wrote:
>
> It looks like ng-grid waits to append rows to the DOM until a scroll event 
> happens:
>
> http://jsfiddle.net/Wwnea/2/
>
> Is there any way to override this behavior, and simply have all the rows 
> in the DOM when the data are loaded? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to