The wired data format of any data warehouse depends entirely on the store. To get the total number of items (and other metadata), it must be returned as part of the response. This is the only way to do pagination on the server side.
All the stores that I implemented expect the data to contain an attribute totalCount, for example:
{
identifier: 'id',
items: [
{ id: 123, name: 'aaa', ... },
{ id: 456, name: 'bbb', ... },
...
],
totalCount: 525
}
( onComplete). getTotalCount() .
start count ajax pagination ( " 1-50 525" ).
API, API . ( , ), , dojo.data.QueryReadStore, , , .