我可以从 JQGrid 中获取添加和删除的行吗?
我使用带有 cellssubmit: 'clientArray' 的 JQGrid 并从列中的自定义按钮执行 addRowData 和 delRowData 。
我想通过“发送按钮”将修改后的数据发送到服务器,并且我知道我可以 getChangedCells 来获取编辑的单元格,但我不知道如何添加和删除行。
我怎样才能实现这个目标?
谢谢 :-)
I'm using a JQGrid with cellsubmit: 'clientArray' and executing addRowData and delRowData from custom buttons in a column.
I want to send modified data to server through a 'Send Button' and I know that I can getChangedCells to get edited cells but I don't know how to get added and removed rows.
How can I achieve this?
Thanks :-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您必须将整个 jqGrid 数据发送到服务器,并且服务器必须将数据与服务器上保存的数据(在数据库中)进行比较。
如果您使用 XML 数据与服务器通信,则答案 jqGrid 生成 XML 问题可以帮助你。如果您使用 JSON 进行数据传输,请查看另一个答案: jqGrid如何将json格式的所有rowData发送到服务器?。
I suppose you will have to send whole jqGrid data to the server and the server have to compare the data with the data saved on the server (in the database).
If you communicate with the server using XML data, the answer jqGrid Problem Generating XML can help you. If you use JSON to the data transfer, look at the another answer: jqGrid howto send all rowData in json format to server?.