本文介绍了如何使用jqgrid使仅单击的单元格可编辑,而不是单击的行中的所有可编辑单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在单击的行中具有可编辑行中的所有单元格(具有editable:true),而不仅仅是单击该单元格.该表类似于此链接中的表: http://www.ok- soft-gmbh.com/jqGrid/ClientsideEditing4.htm .我浏览了以下链接: http://www.trirand.com /jqgridwiki/doku.php?id=wiki:cell_editing ,但没有帮助(可能是由于我的尝试方式错误),还尝试了stackoverflow相关问题中给出的答案(使用了属性: cellEdit:true,cellsubmit:"clientArray").

At present I'm getting all the cells (with editable:true) in the row editable in which i clicked and not only the clicked the cell. The table is similar to the table in this link: http://www.ok-soft-gmbh.com/jqGrid/ClientsideEditing4.htm. I've gone through the link: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:cell_editing, but didn't help (may be due to my fault in the way i tried) and also tried the answers given in stackoverflow related questions (used the attributes: cell true, cellsubmit: "clientArray").

使用上面的链接作为参考,请帮助我 http://www.ok -soft-gmbh.com/jqGrid/ClientsideEditing4.htm (我认为主要是"onSelectRow","ondblClickRow"功能需要更新.我尝试过onSelectCell等,但失败了!).

Please help me using the above link as reference http://www.ok-soft-gmbh.com/jqGrid/ClientsideEditing4.htm (I think mainly the "onSelectRow", "ondblClickRow" functions need to be updated. i tried onSelectCell etc. but failed! ).

谢谢.

推荐答案

如果需要使用单元格编辑,则必须在jqGrid定义中包含cellEdit: true.如果您使用本地数据类型,则应使用 cellsubmit:"clientArray" 另外.如果要在远程源上保存数据,则必须在服务器代码中实施编辑,并指定jqGrid的cellurl选项. 文档描述了jqGrid在保存时发送给服务器的内容单元格.

If you need to use cell editing you have to include cell true in jqGrid definition. If you use local datatype then you should use cellsubmit: "clientArray" additionally. If you want to save data on the remote source you have to implement editing in your server code and specify cellurl option of jqGrid. The documentation describes what jqGrid send to the server on saving of cell.

这篇关于如何使用jqgrid使仅单击的单元格可编辑,而不是单击的行中的所有可编辑单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 09:39