发送数据后如何清空jqgrid网格?

发布于 2024-09-25 11:31:09 字数 109 浏览 0 评论 0原文

我有一个 jqgrid,在将这些网格记录发送到服务器后,我想清空网格...我正在尝试重新加载,但它不起作用...我正在完整使用它...但它不是清空网格网格它向我显示相同的数据... 我怎样才能实现它...

I have a jqgrid and after sending those grid records to server I want to empty the grid ...I am trying with reload but its not working...i am using it under complete ...but its not empty the grid grid instead it show me the same data...
how can I achieve it ...

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

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

发布评论

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

评论(1

国粹 2024-10-02 11:31:09

可能 clearGridData 方法就是您所需要的。如果您使用一些自定义数据绑定到网格元素,则必须设置 jqGrid 的 deepempty:true 选项也是如此,但通常不需要它。

Probably clearGridData method is what you need. If you use some custom data binding to elements of the grid you will have to set deepempty:true option of jqGrid also, but typically it is not needed.

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