如何在可分页网格面板中保留复选框选择

发布于 2024-09-01 16:41:26 字数 342 浏览 3 评论 0原文

我有一个用例,需要一个可分页的数据表,每行都有一个复选框选择,并且需要在分页时维护复选框选择。

到目前为止我能找到的最佳解决方案是:

http://blog.mersoft.com/2008/12/30/gwt-ext-retain-checkbox-selections-in-page-able-gridpanel/

有谁知道一个更简单的解决方案?

I have a use case that requires a data table that is pageable, has a checkbox selection per row, and needs to maintain the checkbox selections when paging.

The best solution I could find so far is:

http://blog.mersoft.com/2008/12/30/gwt-ext-retain-checkbox-selections-in-page-able-gridpanel/

Does anyone know a simpler solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

非要怀念 2024-09-08 16:41:27

我们对 CheckBoxSelectionModel 进行子类化以引入此功能(包括全局全选/取消全选支持,如果您取消选择一项,则使用全选,我们仅跟踪一项未选择的项目;如果您选择一项,我们仅跟踪一项取消全选)所选择的那个)。

您必须重写方法并处理分页工具栏刷新等许多问题。

We subclassed CheckBoxSelectionModel to introduce this functionality (including global select-all/unselect-all support such that with select-all if you unselect one item, we only track the one unselected item and with unselect-all if you select one, we track just the one selected).

You'll have to override methods and deal with a lot of issues with refresh of the paging toolbar etc.

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