SearchDelay for Server-side issue - Page 2

SearchDelay for Server-side issue

2»

Answers

  • allanallan Posts: 54,528Questions: 1Answers: 8,526 Site admin

    Nice one! Would you be willing to send that as a pull request here?

    Allan

  • ksanzksanz Posts: 1Questions: 0Answers: 0

    Thanks @pjdarch & @stevevance - your combined solution is working perfectly for me. This issue has been nagging at me for a while so it was nice to finally find a fix.

  • gmazonigmazoni Posts: 1Questions: 0Answers: 0
    edited January 18

    The selector $('.dataTables_filter input[aria-controls="' + tableId + '"]') of @stevevance can return zero due to server reponse delays, not applying the desired behaviour. I would call $.fn.dataTable.Debounce within initComplete

  • otavioserraotavioserra Posts: 1Questions: 0Answers: 0

    @lukegong
    Your solution works fine here (v. 1.10.23 ). I inserted one condition to reset search and reload all table data when input is blank. I uncommented if statement and change this condition on line 13 including this command: searchTerm.length == 0

    if(searchTerm.length == 0 || searchTerm.length >= 3 || e.keyCode == 13) {

  • ale.mdg@gmail.comale.mdg@gmail.com Posts: 2Questions: 1Answers: 0

    I added a common input text and call .draw(); manually.

Sign In or Register to comment.