如何从 jqgrid 只发送两列值?
我有一个 jqgrid,单击按钮时我只想发送两列值而不是发送整个值...我如何实现是使用 getRowData ....任何建议将不胜感激.. 谢谢!
I have a jqgrid and on button click I just want to send two column values instead of sending the whole values...how can I achieve is using getRowData ....any suggestion will be appreciated..
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能方法 getCol 可以让你停下来。如果您要发送的列中的一列是带有
id
(key:true
) 的列,那么您可以通过一次调用接收所需的数据:如果没有来自columns 在列定义中有
key:true
您应该进行两次调用:然后您可以合并数据或将其单独设置为两个参数:
Probably the method getCol can halt you mostly. If one from the columns which you want to send is the column with
id
(key:true
) then you can receive data which you need with one call:If no from the columns has
key:true
in the column definition you should make two calls:Then you can combine the data or set there separate as two parameters: