我可以从 JQGrid 中获取添加和删除的行吗?

发布于 2024-09-28 17:48:17 字数 205 浏览 9 评论 0原文

我使用带有 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 技术交流群。

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

发布评论

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

评论(1

栩栩如生 2024-10-05 17:48:17

我想您必须将整个 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?.

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