DataTables warning: Added data does not match known number of columns

DataTables warning: Added data does not match known number of columns

ssberassbera Posts: 1Questions: 0Answers: 0
edited May 2010 in General
What is wrong?


/* POST data to server */
$(document).ready(function() {
$('#inbox_received').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bFilter": false,
"aaSorting": [[3,'desc']],
"aoColumns": [{ "bVisible": false },null,null,{ "sType": "date" },null],
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "inboxuser_received_msgs.do",
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.ajax( {
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
} );
}
} );
} );







ID
Received From
Status
Date Received
Media




Loading data from server






JSON from server side:

{
"sEcho": "1",
"iTotalRecords": 1,
"iTotalDisplayRecords": 1,
"aaData": [
{
"emailsmsId": 2161,
"fromName": 6578,
"requestStatus": 82,
"sentTime": {
"date": 7,
"day": 3,
"hours": 8,
"minutes": 11,
"month": 3,
"nanos": 0,
"seconds": 22,
"time": 1270653082000,
"timezoneOffset": 420,
"year": 110
},
"media": "DM"
}
]
}
This discussion has been closed.