发送数据后如何清空jqgrid网格?
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能 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.