error: Unable to get property 'aDataSort' of undefined or null reference

error: Unable to get property 'aDataSort' of undefined or null reference

mahdishadmahdishad Posts: 5Questions: 4Answers: 0

hi. i have a table element in html code like this:

/////////////////////////////////////////////////////////////////////////////////////
and i want to set data array to "ResultTable" with this code:

$("#TarhModal1-btnSearch").click(function () {

var data = [
[
"Tiger Nixon",
"System Architect",
"Edinburgh",
"5421",
"2011/04/25",
"$3,120"
],
[
"Garrett Winters",
"Director",
"Edinburgh",
"8422",
"2011/07/25",
"$5,300"
]
]

66 var table= $("table#ResultTable").DataTable({
data: data,
"paging": false,
"ordering": false,
"info": false
});
});
//////////////////////////////////////////////////////////////////////////////////////////////////////
but i got this error for line 66 :

Unhandled exception at line 66, column 113 in http://localhost:6806/Scripts/DataTable/jquery.dataTables.min.js

0x800a138f - JavaScript runtime error: Unable to get property 'aDataSort' of undefined or null reference
///////////////////////////////////////////////////////////////////////////////////////////////
please guide me . thx

This discussion has been closed.