fnSetFilteringDelay plugin
fnSetFilteringDelay plugin

Hello,
how does this plugin work?
I tried to insert it in the code but the filters don't work
<script type="text/javascript" src="fnSetFilteringDelay.js"></script>
<script>
$(document).ready(function(){
'use strict'; // start DOM
oTable = $('#example').dataTable().fnSetFilteringDelay(1000)(
{
"retrieve": true,
"paging": true, // Table pagination
"order": [[ 1, "asc" ]], // Column ordering
"info": true, // Bottom left status text
"bAutoWidth": true, // Bottom left status text
"bJQueryUI": true,
"searchDelay": 900000,
"sDom": '<"H"lfir>t<"F"ip>' ,// info bottom and above
"aoColumnDefs": [{ "bSearchable": true, "bVisible": false, "aTargets": [ 10 ] },] // hide column but filter enable
}// end DOM
// start column
).yadcf([
{column_number : 1, column_data_type: "html", html_data_type: "text", filter_default_label: "Select Actor"},
{column_number : 2, filter_type: "auto_complete", text_data_delimiter: "-", filter_default_label: "select Year"},
{column_number : 3, filter_type: "range_number", data: ["0", "100"],filter_delay: "500", filter_container_id: "external_filter_container1"},
{column_number : 4, data: ["Active", "Retired" , "Dead"], filter_default_label: "Select Status"},
{column_number : 5, html_data_type: "text",text_data_delimiter: ",", filter_match_mode : "exact", filter_container_id: "external_filter_container3"},
{column_number : 6, column_data_type: "html", text_data_delimiter: " ", filter_default_label: "Select start"},
{column_number : 7, column_data_type: "html", html_data_type: "text", filter_container_id: "external_filter_container5", filter_default_label: "select"},
{column_number : 8, column_data_type: "html", text_data_delimiter: ",", filter_default_label: "select", filter_container_id: "external_filter_container2"},
{column_number : 9, data: ["Yes", "No"], filter_default_label: "Select Yes/No" , filter_container_id: "external_filter_container4"}
]);
SyntaxHighlighter.all();
});
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The plugin can be found here:
https://datatables.net/plug-ins/api/fnSetFilteringDelay
The docs state this:
The
searchDelay
docs state this:This only affects the default global search input.
What isn't working?
Since you are using client side processing the above is likely not going to help. They especially won't affect the YADCF searches. If the problem is with YADCF you should contact the developer on the github site.
for us to help you will need to post a link to your page or a test case replicating the issue so we can help debug. Also provide details of the problem and how to reproduce it.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
hi kthorngren,
solved after update version DataTables 1.10
Thank you