I am using datatable to display my data. In one of my columns i am using a render to check the null if it is not null then display the data using split method. The code is working but it gives a browser warning every time it finds a null value.
here is my code
{
"mData": "address",
"render": function(data, type, row) {
if (data == null) { //do nothing}
else {
return data.split("\n").join("<br/>");
}
}
}
}
here is the warning message I get
DataTables warning: table id=tblrss - Requested unknown parameter 'address' for row 2, column 5. For more information about this error, please see http://datatables.net/tn/4
if (data == null) { return "" }?