-
Notifications
You must be signed in to change notification settings - Fork 295
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
OnDemandGrid rows don't get displayed when inserted at end #363
Comments
The problem seems to be a disagreement between dojo/store/Observable and dgrid/OnDemandList regarding how to tell if we're at the end of the data store. In Observable.js, the query updater does this: var atEnd = resultsArray.length != options.count; This looks reasonable at first glance. It makes sense if the expectation is that we queried the store to get 25 rows but got back only 15 rows, so However, over in OnDemandList.js, in options.count = Math.min(count + queryRowsOverlap, grid.maxRowsPerPage); That sets It's not clear to me which party needs fixing. Perhaps both. I think dojo/store/JsonRest is also affected by this issue. |
I made a jsfiddle of the above code that demonstrates the bug. To get the dgrid libraries, I copied a Javascript include file used by ejellard in #358. I believe it's using Dgrid 0.3.1. The problem is reproducible on the master, though. |
Is there any update on this issue? It's particularily nasty for our grid which can hold thousands of records and our default desired behaviour is to add records at the end. |
IMO dgird lacks a |
I agree, is there any way to escalate this issue? This is effectively making our infinite scrolling grids read-only. |
@kfranqueiro and @kriszyp, super happy to see this. I obviously haven't tested it properly in the last three minutes, but I can't wait to do so tomorrow. Thank you both! :-) |
OnDemandGrid has a problem when rows are inserted into the data store and the sort order places them at the end. If the end of the grid visible when this happens, and there are enough rows for pagination to be taking place, the row doesn't get rendered.
I made a standalone test file that you can copy to the dgrid/test directory and run like the other tests there.
The text was updated successfully, but these errors were encountered: