var oTable = $("#example").dataTable({
"bDestroy": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aaData": eval(response.d) }).bind("sort", function() { alert('sort called'); }).bind("filter", function() { alert('filter called'); });
oTable.fnSort([[4, 'desc']]);
var keyTimer;
$("#tableDiv").find('input').keyup(function() {
clearTimeout(keyTimer);
keyTimer = setTimeout(function(){ console.log("filtered"); }, 500);
});
$("#tableDiv").find('thead').click(function() {
console.log("sorted");
});
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.