When a user enters characters into the search bar (not individual column search)

When a user enters characters into the search bar (not individual column search)

rdigiorgiordigiorgio Posts: 29Questions: 11Answers: 0

To reproduce the issue, create a Datatable with a global search and use ajax to provide the search results. The defaults make a request for every character typed. This creates very large loads on servers.

We would like to require the user to push the enter key to start a search we are getting too many requests for each character. Another option would be to have some type of rate-limiting.

This question has accepted answers - jump to:

Answers

  • kthorngrenkthorngren Posts: 21,322Questions: 26Answers: 4,948
    Answer ✓

    Sounds like you have server side processing enabled. There are many threads on the forum with this question. See if this thread helps.

    Kevin

  • rdigiorgiordigiorgio Posts: 29Questions: 11Answers: 0

    I want the same behavior on Column Search. Is the identification of the DOM element input too broad?

  • kthorngrenkthorngren Posts: 21,322Questions: 26Answers: 4,948
    Answer ✓

    Is the identification of the DOM element input too broad?

    Are you asking about this selector $(".dataTables_filter input")?

    You can make it more specific if you want.

    Kevin

This discussion has been closed.