fnSetFilteringDelay plug-in - Incorporate individual column searches

fnSetFilteringDelay plug-in - Incorporate individual column searches

RobRob Posts: 17Questions: 0Answers: 0
edited April 2009 in General
Has anyone using the fnSetFilteringDelay plug-in incorporated individual column search fields? I've been trying to apply a delay to individual column search fields without success. Hopefully this is an easy task and it's just my inexperience and/or something I've missed. If you've worked on this, let me know.

Thanks, Rob


http://datatables.net/plug-ins#api_fnSetFilteringDelay
http://datatables.net/examples/example_multi_filter.html

Replies

  • zygimantaszygimantas Posts: 33Questions: 0Answers: 0
    edited April 2009
    I haven't tried it yet, but changing fnSetFilteringDelay (http://datatables.net/plug-ins#api) plug-in's line no. 26 to

    [code]
    var anControl = $( 'div.dataTables_wrapper > table > tfoot > tr > th > input:text' );
    [/code]

    might help. Also, check line no. 35. Currently it is:

    [code]
    $$this.fnFilter( anControl.val() );
    [/code]

    So, fnFilter(param) searches in all columns. You should pass the column position index as a second parameter.
  • RobRob Posts: 17Questions: 0Answers: 0
    edited April 2009
    Thanks for your feedback, Zygimantas. I haven't had success adapting your code, but admittedly haven't had the time to focus on it. I look forward to this "homework". If anyone else has worked on this, let me know.
This discussion has been closed.