Datatable column reorder not working in jquery.dataTables.min.1.9.4

Datatable column reorder not working in jquery.dataTables.min.1.9.4

rajaigcerajaigce Posts: 4Questions: 3Answers: 0

When i integrated jquery.dataTables with codeIgniter, column reorder is not working and I got an error TypeError: $.fn.DataTable.Api is undefined <anonymous> http://localhost:81/pos/themes/default/admin/assets/js/dataTables.colReorder.js:1373
<anonymous> http://localhost:81/pos/themes/default/admin/assets/js/dataTables.colReorder.js:46
<anonymous> http://localhost:81/pos/themes/default/admin/assets/js/dataTables.colReorder.js:23

Can anyone do the needful asap.

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    Hi @rajaigce ,

    You'll get that error if the DataTables javascript file hasn't loaded. If you look at the Javascript tab on this page you'll see the files you need to load.

    Cheers,

    Colin

This discussion has been closed.