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:


default (not set) DataGrid?.rowsPerPage (25)
+ table, 25 rows

grid having 50 rows (25 empty), trying to fetch more on scroll

        _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 Jared Jurkiewicz

Owner: changed from Jared Jurkiewicz to Kris Zyp

comment:2 Changed 9 years ago by Colin Snover

Resolution: wontfix
Status: newclosed

dojox/data is abandoned. Some dojox/data stores have been upgraded to use the Dojo Store API and can be found at

Note: See TracTickets for help on using tickets.