Skip to content
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

OnDemandList.js - line 326 in renderQueryResults function error, plus no scrolling for next range of items #1429

Closed
jengait opened this issue Oct 19, 2018 · 3 comments

Comments

@jengait
Copy link

jengait commented Oct 19, 2018

I am using OnDemandGrid (1.2.1) with a dstore (1.1.2), and an error is being thrown in OnDemandList.js; both rows and resolvedRows are undefined.

My dstore is defined first like this:
var TrackedRestStore = declare([Rest, SimpleQuery, Trackable]); seStore = new TrackedRestStore({ target: appUrl + "api/SP_SURVEY", accepts: "application/json", idProperty: "SURVEY_ID", sortParam: "sort", rangeStartParam: 'start', rangeCountParam: 'count' });

And dgrid is defined afterwards like this:
`seGrid = new (declare([OnDemandGrid, Selection, DijitRegistry, Keyboard, Editor, ColumnHider, ColumnResizer, ColumnReorder]))({
id: "seGrid",
idProperty: "ID",
cellNavigation: true,
columns: seColumns,
collection: seStore.filter({ AREA: sArea }).sort({ property: "ID", descending: true }),
region: 'center',
selectionMode: "multiple"
getBeforePut: false,
farOffRemoval: 500,
keepScrollPosition: true,
noDataMessage: "No results found.",
showFooter: true
});

            gridLC.addChild(seGrid);
            seGrid.startup();`

I can't figure out why it thinks that rows is undefined; in stepping through the code I can see that it is requesting the first 25 items and that the total returned is 225. I have tried this both with the rangeStartParam and rangeCountParam options defined, and also have tried returning the Content-Range header in the response. I wrote the backend web service as well, and the first 25 items populate the grid, but when I scroll down to the bottom there is not a new request sent to the server.

What am I missing here?

@jengait
Copy link
Author

jengait commented Oct 22, 2018

Seems like if I use 'debounce' only the first 25 records get requested and displayed, and I can't scroll down any further. But if I set it to 'throttleDelayed' then I seem to have the ability to scroll down past the first set, but there are big white spaces between the sets of rows...??

@msssk
Copy link
Contributor

msssk commented Jan 14, 2020

Is this issue still occurring? If so, can you provide a test case and specify the browser(s) the bug occurs in?

@msssk
Copy link
Contributor

msssk commented Apr 3, 2020

Closing this issue as it lacks sufficient information to reproduce and has been inactive for a long time. If you continue to experience problems please open a new issue and provide a test case.

@msssk msssk closed this as completed Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants