2

We have noticed that dataSources can drop rows in a few scenarios. After parsing the data from the server while it's inserting stuff into the dataSource._ranges[] array you can notice that not all of the rows that were received by dataSource:parse() and dataSource:data() are available in the ranges.

If the data response size is less than the pageSize() value then the grid has problems scrolling and paging, and upon scrolling, the dataSource() will continually request (page 1) and (page 2) over an over again.

If the data response size is larger than the pageSize() it might work, but we are unsure. We have also noticed that if the data response size is 2x the pageSize() then we are more likely to have an issue with data finding it's way in the ranges.

The server is aggregating data from several services and it's hard to predict the number of records that will be returned.

Should kendo support server responses that have more or less data than the page size suggests?

4

1 回答 1

0

如果响应大小与请求中发送的页面大小不同,则服务器不会返回所请求的内容,所以我会说所有的赌注都关闭了。我希望客户忽略额外的数据,因为它没有要求。您的服务器在生成响应时是否考虑了请求的页面大小?我可以看到它会在哪里返回更少的数据,但绝不应该返回比请求更多的数据。

于 2013-12-21T23:36:46.013 回答