Silverlight 域数据源 +分页:自动加载=“假”

发布于 2025-01-03 12:42:16 字数 237 浏览 2 评论 0原文

我想将 DataPagerDataGridDomainDataSource 一起使用。

我想提前缓存未来的页面。当用户从最后一页开始,比如说,五页时,我希望加载另一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清音悠歌 2025-01-10 12:42:16

我认为您正在寻找 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文