DataTables warning (table id = 'example-advanced'): Cannot reinitialise DataTable while using treetable and datatable at the same time

Posted by Nyaro on Programmers See other posts from Programmers or by Nyaro
Published on 2014-06-09T03:03:58Z Indexed on 2014/06/09 3:41 UTC
Read the original article Hit count: 732

Filed under:
|

DataTables warning (table id = 'example-advanced'): Cannot reinitialise DataTable while using treetable and datatable at the same time. Here is my code:

<script src="jquery-1.7.2.min.js"></script>
<script src='jquery.dataTables.min.js'></script>
<script src="jquery.treetable.js"></script>

<script>
  $("#example-advanced").treetable({ expandable: true });
</script>            
<script>
  $('#example-advanced').dataTable( {
    "bSort": false
  } );
</script>

Actually I wanted to get rid of the sorting part of the datatable coz it was giving error in treetable display so i want the sorting part from the datatable out and keep other functions like search and pagination. Please help me out. Thanks in advance.

© Programmers or respective owner

Related posts about php

Related posts about jQuery