我在这里根据第二个jqgrid值更新格式化程序中的某些rowobject但是更新时它显示为" undefined" .how解决这个问题?
name:'xx',
index:'xx',
classes:'xx',
width:120,
align:'center',
sorttype: 'String',
formatter:function (cellvalue, options, rowObject)
{
return "<div style='color:red'><center>"+rowObject.xx+ "(Click here to View Patta Dhaar Details)</center></div>";
}
function dd()
{
var v = JSON.parse(document.getElementById("xx"+sno).innerHTML);
var newpatta=v.curpatta;
var newsurveynewNo=v.surveynewNo;
var currrow= $("#currpattachk").val();
alert("am getting value here"+v.xx);
var cm = $("#land_details_table_new").getGridParam('colModel');
var rowData = $("#land_details_table_new").getRowData(currrow);
$("#land_details_table_new").jqGrid('setCell', currrow, 'curPatta', v.xx);
$("#land_details_table_new").jqGrid('getLocalRow', currrow).xx = v.xx;
}