Uncaught TypeError: $.fn.dataTable.ColReorder is not a function

I’m using the Data Table plugin for my implementation.As I Would like to reorder the columns in the data table using the Col-Reorder plugin.

var table = $(‘#timely_datable’).dataTable();
var colReorder = new $.fn.dataTable.ColReorder( table );
var newOrder = [1,2,3,4,5,6,14,15,9,10,11,12,13,7,8,16,17,18,19,20,21,22,23,24,25,26];

var order=colReorder.fnOrder(newOrder);
I am using Data Table plugin Version(1.9.4) and Col reorder Version(1.0.8)

Add Comment
  • 0 Answer(s)

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.