Filter on keyup or on return behavior?

Filter on keyup or on return behavior?

mvalentinermvalentiner Posts: 2Questions: 0Answers: 0
edited May 2012 in General
I've inherited a project that uses DataTables. In the DataTables used in my application, is a text entry box for filtering. The current behavior is that the user must hit return to have the DataTable filtered. My client has asked that it filter on every key stroke. But, reading through the documentation and forums on this site, it sounds like filtering on every keystroke is the default behavior and filtering on return is custom behavior! Is this the case?

Replies

  • koosvdkolkkoosvdkolk Posts: 169Questions: 0Answers: 0
    Yup: http://datatables.net/release-datatables/examples/api/multi_filter.html
  • allanallan Posts: 64,903Questions: 1Answers: 10,747 Site admin
    Agreed - the default behaviour is to filter on every keystroke. Anything else would need some custom code added.

    Allan
  • mvalentinermvalentiner Posts: 2Questions: 0Answers: 0
    Hmmm... thank you both for your prompt reply. Now, I need to go figure out why this app behaves in a non-standard way.
This discussion has been closed.