Why an error may occur:

jquery.dataTables.min.js: 61 Uncaught TypeError: Cannot read property 'aDataSort' of undefined

parameters in php

$grid_init = array( 'ajax' => 'index.php?action=list&obj=agreement&view=json', "processing" => true, "serverSide" => true, "bFilter" => false, "stateSave" => true, "dom" => '<i><"#list-toolbar.hidden-xs"><t><lp>', "order" => array(3, 'asc') ); 

in js:

 $('#main-list').dataTable({$grid_init}); 
  • as it hints at Cannot read property 'aDataSort' of undefined - GenCloud
  • which is not used anywhere - Jonny Manowar
  • a similar question has already been asked in the English version - stackoverflow.com/questions/28454203/… - kevin

0