I'm attempting to make a response datatable, as demonstrated here: https://datatables.net/examples/styling/bootstrap.html
I'm using dc.js to populate my datatable, and it successfully get's populated. However, none of the features work (e.g. search, sorting, filter the number of entries, etc.). That said, I am able to see all the features visually (it just has no effect).
NOTE: Randomly (about 5% of the time) the DataTable works exactly as expected (with page numbers, search, etc.). Unfortunately, when I refresh, it stops.
Here is the HTML portion:
<table class="table table-bordered table-hover" id="dc-table-graph">
<thead>
<tr class="header">
<th>Post Information</th>
<th>Post Text
</th>
</tr>
</thead>
</table>
dc.js code to initialize:
var dataTable = dc.dataTable("#dc-table-graph");
Lastly, in my HTML, in the bottom of all my scripts, I have:
<script>
$(function () {
$('#dc-table-graph').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
});
</script>
I have explored the following posts, but no such luck:
working? – cynical biscuit Jan 25 '16 at 21:17