angular-ui/ui-grid

Grid does not fire needLoadMoreData until user stops scrolling or until scroll reaches the bottom of the grid

已關閉

#4,056 建立於 2015年7月27日

 (9 則留言) (0 個反應) (0 位負責人)JavaScript (2,496 個分叉)batch import
grid-infinite-scrollhelp wanted

倉庫指標

星標
 (5,395 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

$scope.gridOptions = { infiniteScrollRowsFromEnd: 100 }

It seems as though until a user stops scrolling the "needLoadMoreData" event/function does not get called and is not accounting for the infiniteScrollRowsFromEnd.
The idea behind infinite scrolling is that you can start the request for more data before the user reaches the end of the grid and it would be awesome if the grid would start the request even if the user is still scrolling and would subsequently concat the response data to the end without messing up the scroll position (even though I am using saveScrollPercentage).

貢獻者指南