Dave's Brain

Browse - Programming Tips - How do I make the dataTables jQuery plugin refilter (the filtering

Date: 2009dec18
Language: javaScript

Q.  How do I make the dataTables jQuery plugin refilter (the filtering
criteria has changed)?

A.  Call fnDraw() like this:

// At initialization time: gTbl = $('#mytable').dataTable({ // When the filter criteria has changed and you want to refilter. // This applies when you have a custom filter. gTbl.fnDraw();

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.