简体   繁体   中英

jqgrid is row in edit mode

Is there a way to know if a row inside the jqgrid is in edit mode?

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" . 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
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM