博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

JQgrid 相关

Posted on 2012-06-27 15:05  oilsun  阅读(150)  评论(0编辑  收藏  举报
1.
Is there a way to know if a row inside the jqgrid is in edit mode?

If you speak about rows in inline editing mode than you can vertify whether row (<tr> element) has attribute editable="1". The attribute will be set ba jqGrid for all rows which are in the editing mode. 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
}
 
2.