search.dt not turning back on

search.dt not turning back on

bkatesbkates 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:

http://debug.datatables.net/remote/status.php?callback=jQuery21409464308095630258_1436020864637&unique=1436020887580&_=1436020865357

http://debug.datatables.net/remote/status.php?callback=jQuery21409464308095630258_1436020864637&unique=1436020887580&_=1436020865398

.... etc

Replies

  • allanallan Posts: 61,773Questions: 1Answers: 10,112 Site admin

    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

  • bkatesbkates Posts: 35Questions: 5Answers: 0

    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.

  • allanallan Posts: 61,773Questions: 1Answers: 10,112 Site admin

    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

This discussion has been closed.