How to manually update datatables table with new JSON data

SOLUTION: (Notice: this solution is for datatables version 1.10.4 (at the moment) not legacy version). CLARIFICATION Per the API documentation (1.10.15), the API can be accessed three ways: The modern definition of DataTables (upper camel case): var datatable = $( selector ).DataTable(); The legacy definition of DataTables (lower camel case): var datatable = $( selector … Read more

Using Jquery Datatable with AngularJs

Take a look at this: AngularJS+JQuery(datatable) FULL code: http://jsfiddle.net/zdam/7kLFU/ JQuery Datatables’s Documentation: http://www.datatables.net/ var dialogApp = angular.module(‘tableExample’, []); dialogApp.directive(‘myTable’, function() { return function(scope, element, attrs) { // apply DataTable options, use defaults if none specified by user var options = {}; if (attrs.myTable.length > 0) { options = scope.$eval(attrs.myTable); } else { options = { … Read more

Is there a way to disable initial sorting for jquery DataTables?

Well I found the answer set “aaSorting” to an empty array: $(document).ready( function() { $(‘#example’).dataTable({ /* Disable initial sort */ “aaSorting”: [] }); }) For newer versions of Datatables (>= 1.10) use order option: $(document).ready( function() { $(‘#example’).dataTable({ /* No ordering applied by DataTables during initialisation */ “order”: [] }); })