search.dt not turning back on
search.dt not turning back on
bkates
Posts: 35Questions: 5Answers: 0
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
This discussion has been closed.
Replies
Hi,
It sounds like the debugger is having a bit of an issue with your page for some reason. Regardless of that, I'm not sure that the debugger would give us the information required to assist with this one. We'd need a link to a page that demonstrates the issue.
Thanks,
Allan
Would any debug information from the console be of use?
I logged the table before turning the event off, after it was turned off, and again when it was turnedback on.
Not really - I think I would need to be able to see all of the Javascript on the page to get an idea of what is happening. Or alternatively access to some simple test case that shows the issue.
Regards,
Allan