0

I used dataTable.min.js javascript file in my project. I filled data for table as dynamic. But I have giving an error. Can you help me.

Error Detail: jquery.dataTables.min.js:65 Uncaught TypeError: Cannot read property 'aDataSort' of undefined

Kahraman
  • 5
  • 4
  • Please show your code what you have tried till. – Ved_Code_it Feb 05 '19 at 16:12
  • var dataSet = [ ["Tiger Nixon", "System Architect", "Edinburgh", "5421", "2011/04/25", "$320,800"], ["Unity Butler", "Marketing Designer", "San Francisco", "5384", "2009/12/09", "$85,675"] ]; $(document).ready(function () { $('#datatable').DataTable({ data: dataSet, columns: [ { title: "Name" }, { title: "Position" }, { title: "Office" }, { title: "Extn." }, { title: "Start date" }, { title: "Salary" } ] }); }); – Kahraman Feb 05 '19 at 16:50

2 Answers2

0

looks like the data being returned is empty and hence it can not read property of undefined, anyways post code to analyze more or you can see if you find any answer here
->JQuery Datatables : Cannot read property 'aDataSort' of undefined

0

i had assigned tables id as name "datatable". and then i thought , it will be problem. and then i changed the id as "example". it that works

Kahraman
  • 5
  • 4