-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Extend onScroll API #1854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend onScroll API #1854
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand, what's the point of this? We already do lazy row loading with rowGetter
.
@@ -29,4 +29,5 @@ | |||
.rdg-grid { | |||
// min-height is here to show the horizontal scrollbar when there are no rows | |||
min-height: 1px; | |||
margin-bottom: 8px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this could break anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this doesn't break anything, and in fact this fixes a jumping issue that if the last row cells are editable, and when you click on it, the the drag square will push the rows above a little bit.
They all called lazy loading, but this one is data focused. Maybe endless scrolling would be a better term. The real use case is like you only want to pull 100 records initially from an API and pull another 100 records from the same API call (or may be another) when the scroll bar reaches the bottom. |
You could just trigger loading in |
Aren't we going to deprecate the |
Uh oh!
There was an error while loading. Please reload this page.