datatable show null data how to fix

datatable show null data how to fix

ballprogrammerballprogrammer Posts: 11Questions: 0Answers: 0
edited June 2013 in DataTables 1.8
jquery-1.7.1
datatables-1.8.2


$(window).load(function () {
$('#Table1').dataTable({
"aaData": [{"id":1,"text":"a"},{"id":2,"text":"b"},{"id":3,"text":"c"},],
"aoColumns": [{"mData": "id","sTitle":"id"},{"mData": "text","sTitle":"text"}],
});
});






data show null 3 row

how to fix
note ..
i use datatable-1.9.4 is working
i want use datatables-1.8.2

Replies

  • allanallan Posts: 54,703Questions: 1Answers: 8,556 Site admin
    edited June 2013
    mData was new in 1.9.4. If you want to use it, you need to use 1.9.4 or newer.

    There was an mDataProp option in 1.8 which might work for you, but old versions are unsupported.

    Allan
  • ballprogrammerballprogrammer Posts: 11Questions: 0Answers: 0
    thank you very much Allan.
    ^^
This discussion has been closed.