server side processing - limit requests

server side processing - limit requests

larylary Posts: 2Questions: 0Answers: 0
edited February 2012 in Feature requests
Hello

I'm using DataTables 1.9 with server side processing and I have performance issues when users type filter phrase. This is because requests to the server are made every character user types. When user types 10 character word then 10 requests are made. I would like the plugin to check time period that elapsed from entering the last character and only fire request when that time is long enough (at least 1 second for example). In other words I'm looking for the way to actually fire ajax request when user stops typing filter phrase rather than firing it every typed character. Is there a way to achive this kind of behaviour or maybe you could add such feature in the future?

Regards

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,469 Site admin
    This plug-in introduces a key "debounce" which will help: http://datatables.net/plug-ins/api#fnSetFilteringDelay . There is also a filter on return key plug-in. A filter button could also be done in a similar way to those two plug-ins.

    Allan
  • larylary Posts: 2Questions: 0Answers: 0
    Yes, filtering delay is what I was looking for. Thanks a lot!
This discussion has been closed.