Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  10] [ 7]  / answers: 1 / hits: 26899  / 10 Years ago, mon, april 21, 2014, 12:00:00
Initial code looks like this..

var oTable = $('#sim_data').dataTable( {
aoColumns: [ {sName: ss },{sName: sim_no}, {sName: sale_price}, {sName: purchased_price},{sName: status} ]

}).makeEditable({

.....
});


Only when I try to initialize aoColumns as above returns error



Cannot read property 'fnSetData' of undefined


and with out this initialization it works


More From » datatables

 Answers
15

I had the same problem today. Make sure the number of elements in your aoColumns matches the number of columns you actually have in your table.



In my case, that was the problem.


[#71371] Friday, April 18, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jamilab

Total Points: 687
Total Questions: 88
Total Answers: 86

Location: Antigua and Barbuda
Member since Sat, Apr 24, 2021
3 Years ago
jamilab questions
;