开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜