DataTables warning (table id = 'example-advanced'): Cannot reinitialise DataTable while using treetable and datatable at the same time
- by Nyaro
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.