【问题标题】:While fetching records from wcf odata service entities, It returns only top 20 records from the entity. How can i increase the limit 20 to 100?从 wcf odata 服务实体获取记录时,它仅返回实体中的前 20 条记录。如何将限制从 20 增加到 100?
【发布时间】:2016-05-01 05:28:32
【问题描述】:

您好,我正在开发 devextreme 多渠道应用程序,我有一个视图,其中显示了通过 wcf odata 服务实体从 sql 服务器获取的城市列表。我面临一个问题,它只获取前 20 条记录并跳过剩余的记录。我google了一下,发现wcf中有一个属性叫

MaxResultSetsPerCollection

增加一个实体的返回结果。我已将其声明为config.MaxResultSetsPerCollection =100

但它不起作用。仍然它只获取前 20 条记录。谁能帮我解决这个问题?提前致谢。

【问题讨论】:

标签: wcf odata wcf-data-services devextreme


【解决方案1】:

我想,您使用默认的pageSize 选项。你可以像下面这样改变它:

var ds = new DevExpress.data.DataSource({
   // the data source configuration

   pageSize: 100 // required page size
});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-07-06
    • 1970-01-01
    • 2018-11-19
    • 2022-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多