I'm using a datatables jquery plugin. Now I need to change value of column 2 after ajax loaded. But unfortunately my code doesn't work. I can't find solution in manual and internet. Below code how I doing:
var productTable = $("#productTable").dataTable({
bSort: true,
bLengthChange: false,
bPaginate: true,
sAjaxSource: '/getAll',
columns: [
{"data": "DT_RowId"},
{
"render": function (data, type, full, meta) {
var desc = full.value;
return '<span class="smallDesc">' + desc + '</span>';
}
}],
"fnInitComplete": function (oSettings, json) {
var api = this.api();
api.cell("#20300006", 0).data('newData'); // it works
api.cell("#20300006", 1).data('newData2'); //dosen't works
api.draw();
});