views:

59

answers:

1

i whant to check if the row is in edit mode.
i've checked the jqGrid documentation but i couldn't find this.
thanks in advance

+1  A: 

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
}
Justin Ethier
"events" is a grids id right?
CoffeeCode
Yeah, I just updated my answer to clarify.
Justin Ethier