Why is not fnSetFilteringDelay built in?
Why is not fnSetFilteringDelay built in?
Regarding the fnSetFilteringDelay plug-in (http://datatables.net/plug-ins/api#fnSetFilteringDelay) ...
It seems to me that the vast majority of cases using server side filtering would benefit from a delay prior to each new filtering Ajax request being sent to the server. At present, each keystroke instantly sends a new request to the server. For example, if I filter on "Boston", six requests will be sent to the server, but only the last request will be used. This seems highly non-ideal.
So why isn't fnSetFilteringDelay built in to DataTables? It seems to me this would be a valuable feature.
Additionally, according to discussion #943 (link below) the current plug-in does not work for per-column filtering.
http://datatables.net/forums/comments.php?DiscussionID=943
Ideally, if I'm using server-side processing, the filtering delay should be built-in and automatically turned on (to a reasonable delay, say 500ms?) by default.
It seems to me that the vast majority of cases using server side filtering would benefit from a delay prior to each new filtering Ajax request being sent to the server. At present, each keystroke instantly sends a new request to the server. For example, if I filter on "Boston", six requests will be sent to the server, but only the last request will be used. This seems highly non-ideal.
So why isn't fnSetFilteringDelay built in to DataTables? It seems to me this would be a valuable feature.
Additionally, according to discussion #943 (link below) the current plug-in does not work for per-column filtering.
http://datatables.net/forums/comments.php?DiscussionID=943
Ideally, if I'm using server-side processing, the filtering delay should be built-in and automatically turned on (to a reasonable delay, say 500ms?) by default.
This discussion has been closed.
Replies
Easy to go too extreme and claim that ANY optional functionality could be a plug-in, and I wouldn't want to go that far. So it's just a matter of the line to be drawn.
Me, I could go for having it included by default because I use primarily server-side. ;-)
Of course, if everyone came to the forum and said "we need this feature" then I would look at adding it in by default, but the majority of DataTables use cases do not use that plug-in (the majority are client-side processing, so on-the-fly filtering works fine).
Allan