Silverlight 域数据源 +分页:自动加载=“假”
我想将 DataPager
与 DataGrid
和 DomainDataSource
一起使用。
我想提前缓存未来的页面。当用户从最后一页开始,比如说,五页时,我希望加载另一个 XXXX 页面。但是,我不希望网格在参数(绑定到用户控件)更改时自动刷新,因此我将自动加载设置为 false...
有没有好的方法可以实现此目的?
谢谢!
I want to use a DataPager
with a DataGrid
and DomainDataSource
.
I would like to have future pages cache ahead of time. When the user gets, say, five pages off from the last page, I would like another XXXX pages to load. However, I don't want the grid to auto-refresh when parameters (bound to user controls) change, so I have autoload set to false...
Is there a good way to make this work?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您正在寻找 LoadSize 属性。我不记得具体细节,但它允许您一次加载多个页面。例如,如果将 PageSize 设置为 5,将 LoadSize 设置为 25,则一次将加载 5 页数据。
I think you're looking for the LoadSize property. I don't remember the specifics, but it allows you to load multiple pages at a time. For instance, if you set PageSize to 5 and LoadSize to 25, you'll be loading 5 pages of data at a time.