To update the specified row, the param parameter contains the following characteristics: Index: updates the index of a row. Row: new data for a row.
var grid = $("#QualityAdd").datagrid("updateRow", { index: gridIndex, row: {
Url: "<a href="#">"+r[0].html+"</a>"
} });
Datagrid built-in objects
{rows:[{No:001,Order:{no:00101,amount:10}}]}
columns: [[
{ title: ' The order no. ', field: 'no', width: 100,
formatter: function (value, row, index) {
return row.Order.no;
}
},
It finally displays 00101