[英]jqgrid is row in edit mode
Is there a way to know if a row inside the jqgrid is in edit mode? 有没有办法知道jqgrid中的行是否处于编辑模式?
Thank's In Advance. 提前致谢。
If you speak about rows in inline editing mode than you can vertify whether row ( <tr>
element) has attribute editable="1"
. 如果您在内联编辑模式中谈论行而不是行,则行(
<tr>
元素)是否具有属性editable="1"
。 The attribute will be set ba jqGrid for all rows which are in the editing mode. 对于处于编辑模式的所有行,将为ba jqGrid设置该属性。 So the code could be
所以代码可以
if ($("tr#"+rowid).attr("editable") === "1") {
// the row having id=rowid is in editing mode
}
or 要么
$($("#list").jqGrid("getInd",rowid,true)).attr("editable") === "1") {
// the row having id=rowid is in editing mode
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.