I have been trying to update a cell in jqgrid for five hours , but it doesn't work yet.
I used:
var StatusValue = $("#DocumentGrid").getCell(rows[i], "StatusLabel");
if (StatusValue.toString() == "Affected")
{
StatusValue = "Attribué";
alert(StatusValue);
$("#DocumentGrid").jqGrid('setCell', 5, 'StatusLabel', 'Attribué');
$("#DocumentGrid").jqGrid('getLocalRow', 5).DocumentGrid = 'Attribué';
}
but it didn't work
I tried also this code http://decoder-log.blogspot.com/2013/03/change-cell-value-in-jqgrid.html and How to update value of data in jqgrid but none of them worked.
enter code here