How to programatically set a data range filter (Datatables column filter)
How to programatically set a data range filter (Datatables column filter)
The Datatables column filter has a nice way of adding date and number range filters (http://jquery-datatables-column-filter.googlecode.com/svn/trunk/dateRange.html ).
However, I can't seem to find a way to change that programatically (e.g., triggered by the click of a button). Other columns can be filtered with oTable.fnFilter(options).
What would you suggest to achieve this on range columns?
However, I can't seem to find a way to change that programatically (e.g., triggered by the click of a button). Other columns can be filtered with oTable.fnFilter(options).
What would you suggest to achieve this on range columns?
This discussion has been closed.
Replies
Allan
[code]
$("#th_id).find("#[id*='range_from']").val(my_date);
oTable.fnDraw();
[/code]
In other words: set the value of the input and redraw the table.