My document.ready links to the search.dt event:
$('#gridTable').on( 'search.dt', function (e, settings) {
console.log("Search event");
displayRecordCounts();
} );
I have a reset function where I remove all search criteria. In this function, I turn the search.dt event on and off:
table.off( 'search.dt' );
// Do work
table.on( 'search.dt' );
The problem is that I no longer see the console logging. The event is not triggered.
Any suggestions?
I'm uploading debug information now, but it's been going for close to four minutes:
.... etc