ExtJS Grid PagingToolbar 商店刷新删除

发布于 2024-09-28 09:59:55 字数 155 浏览 2 评论 0原文

我已经设置了一个 ExtJS 网格,同时使用 PagingToolbar(在 ArrayStore 上使用 PagingMemoryProxy)。

我已从网格存储中删除了项目,但 PagingToolbar 不会显示项目已被删除。

关于如何执行此操作有什么建议吗?

I've setup a ExtJS Grid, while using the PagingToolbar (with PagingMemoryProxy on an ArrayStore).

I have removed items from the store of the grid, but the PagingToolbar will not show that the items have been removed.

Any suggestions on how to do this?

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

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

发布评论

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

评论(1

孤凫 2024-10-05 09:59:55

修改商品时尝试解除绑定并重新绑定商店。

myGrid.store.on('remove', function() {
  var pager = myGrid.getBottomToolbar();
  if (pager) {
    pager.unbind(myGrid.store);
    pager.bind(myGrid.store);
  }
});

Try unbinding and rebinding the store when you modify the items.

myGrid.store.on('remove', function() {
  var pager = myGrid.getBottomToolbar();
  if (pager) {
    pager.unbind(myGrid.store);
    pager.bind(myGrid.store);
  }
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文