1

下面是我的商店代理...我的问题是什么是 totalProperty?我正在阅读 100 条记录。但我想每页显示 10 条记录。我的 json 中的 totalProperty 应该是 10 还是 100?

 proxy: {
        type: 'ajax',
        url: 'GridView/writeRecord',
        reader: {
            type: 'json',
            totalProperty: "count",
            root: "myTable"
        }
    },

这是我的 JSON

{
"count": 100,
"myTable": [
{
4

1 回答 1

1

这在文档中有所介绍

要从中检索数据集中记录总数的属性的名称。仅当整个数据集不是一次性传递,而是从远程服务器分页时才需要这样做。

所以应该是100。

于 2012-11-20T01:19:35.647 回答