Cause of Error: Unable to get property 'fnSetData' of undefined or null reference at line 820
Cause of Error: Unable to get property 'fnSetData' of undefined or null reference at line 820
Hi guys I am getting the below error
Unhandled exception at line 820, column 4 in https://localhost:44306/Scripts/jquery.dataTables.js
0x800a138f - JavaScript runtime error: Unable to get property 'fnSetData' of undefined or null reference
for the function
function _fnSetCellData( oSettings, iRow, iCol, val )
{
var oCol = oSettings.aoColumns[iCol];
var oData = oSettings.aoData[iRow]._aData;
oCol.fnSetData( oData, val );
}
I am setting the datatable like this
$('#tblContractLines').dataTable({
"aaSorting": []
});
This dataTable was working on December 23 when I demo'ed it. The only difference is that now it has data whereas before there was none.
Answers
Since I could not get dataTables to work on that table, I just removed the JQuery assigning dataTables to that ttable and one other table by commenting out the lines
//$('#tblContractLines').dataTable({
// "aaSorting": []
//});
Then I just added some css styling to the table myself so I am no longer fighting with dataTables.
Is this a duplicate of your other discussion?
Allan
No. note the difference in table names and the different resolutions.
If you would be able to link to the page showing the issue, I would be happy to try and debug it to see what is going wrong.
Allan
Can't. Its classified as FOUO (for official use only).
Can you use JSFiddle or http://live.datatables.net to recreate the issue so I can attempt to debug it and offer some help then please?
Allan
I've tried but was not able to duplicate issue without using razor.
Anyway the issue was resolved by not using dataTables and the application has been deployed to production.