Opened 11 years ago
Closed 9 years ago
#13235 closed defect (wontfix)
JsonRestStore+DataGrid: fetch data, count = rowsPerPage => rowCount = 2 * count
Reported by: | Tiqu | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | DojoX Data | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
default (not set) DataGrid?.rowsPerPage (25)
+ dojox.data.JsonRestStore?
+ table, 25 rows
grid having 50 rows (25 empty), trying to fetch more on scroll
dojox.data.JsonRestStore?:
_processResults: function(results, deferred){ // index the results var count = results.length; // if we don't know the length, and it is partial result, we will guess that it is twice as big, that will work for most widgets return {totalCount:deferred.fullLength || (deferred.request.count == count ? (deferred.request.start || 0) + count * 2 : count), items: results}; },
deferred.fullLength == null, ok, this is not partial request
returns {50, items}
DataGrid?.rowCount becomes 50 having 25 data rows…
Well, “deferred.request.count == count” != "partial result"
Change History (2)
comment:1 Changed 11 years ago by
Owner: | changed from Jared Jurkiewicz to Kris Zyp |
---|
comment:2 Changed 9 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
dojox/data is abandoned. Some dojox/data stores have been upgraded to use the Dojo Store API and can be found at https://github.com/kfranqueiro/dojo-smore.