What steps will reproduce the problem?
1. Create a dojox.data.Grid linked to a PerserveStore with exactly 25 items
2. Enable RestChannels subscriptions (to stop lazy loading)
3. View the grid -- it thinks there are 50 items in it
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
This only breaks with 25 items, it works ok with 24 and 26 items.
The problem is that in JsonRestStore.js. the following line incorrectly sets
the row count to 50
instead of 25. This is because deferred.fullLength is not set (it is null).
One workaround is to
always set Content-Range header on the server which ensures deferred.fullLength
gets set
correctly.
return {totalCount:deferred.fullLength || (deferred.request.count
== count ? (deferred.request.start || 0) + count * 2 : count), items:
results};
Original issue reported on code.google.com by pvolkaer...@gmail.com on 20 Apr 2010 at 7:12
Original issue reported on code.google.com by
pvolkaer...@gmail.com
on 20 Apr 2010 at 7:12