Hi Peng,
Good day to you.
We have checked your query and prepared a sample with data with format mentioned in documentation. We use the query property for getting data from server. In query property we have used requiresCount method to parse result data from server and applied to ListView component.
The query should be used as like in the below code snippet,
query: new ej.data.Query().requiresCount() |
Sample Data format
{
"result": [{
"Name": "sample1",
"Id": "Id1"
}, {
"Name": "sample2",
"Id": "Id2"
}, {
"Name": "sample3",
"Id": "Id3"
}, {
"Name": "sample4",
"Id": "Id4"
}],
"count": "2",
"message": "Success",
"Status":"Success"
} |
We have prepared a sample for required sample data (contains result and count) and the same can be downloaded from below link,
Could you please check the above sample and get back to us if you need any further assistance on this?
Regards,
Vinoth Kumar S