Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 865
user590586 Avatar asked Feb 22 '11 13:02

user590586


1 Answers

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
}
like image 187
Oleg Avatar answered Sep 26 '22 21:09

Oleg