angularjs - How to implement infinite scrolling with ng-grid -
currently, using ng-grid
show data in tabular way. also, tables have rather lots of records, am using server-side paging fetch data.
i not quite satisfied solution. fetch more data scrollbar reaches end of window (something nginfinitescroll
directive). haven't found way ng-grid.
so, question is: can done ng-grid
, , if yes - how? there seems no out of box solution in ng-grid
problem.
when user has scrolled bottom of grid event fires. useful infinite/server-side scrolling.
example:
scope.$on('nggrideventscroll', function () { //append rows grid });
use event notified when user scrolled bottom of grid can append more rows grid.
resource: https://github.com/angular-ui/ng-grid/wiki/grid-events
Comments
Post a Comment