how to check the state of the row in jqGrid
I开发者_如何转开发 want to check if the row is in edit mode.
I've checked the jqGrid documentation but I couldn't find this.The following code will check this for you:
var edited = "0";
var ind = jQuery("#myGrid").getInd(row_id,true);
if(ind != false){
edited = $(ind).attr("editable");
}
if (edited === "1"){
// row is being edited
} else{
// row is not being edited
}
Seems to me that just tells you if the row Can be edited not read only. Not if it is in Edit mode
精彩评论