changing the pipeline paramaters
changing the pipeline paramaters
I'm using the pipeline API with datatables, and I'm trying to do a couple of things which don't seem to have a specific example.
I've added search boxes for my table, but these aren't 'live', in other words the user has to click on an 'apply filter' and then the ajax request is initiated so there is no actual datatable filtering going on. I can probably figure out the 'trigger update' action pretty easily, but how do I change the value of sSearch_0,sSearch_1 etc. so they contain the value of my search boxes?
For instance, if I have:
[code]
[/code]
I want the value of 'filter_column1' to be assigned to sSearch_1 (aka sSearch_1 = $("#filter_column1").attr('value') which is called before the ajax action).
I've added search boxes for my table, but these aren't 'live', in other words the user has to click on an 'apply filter' and then the ajax request is initiated so there is no actual datatable filtering going on. I can probably figure out the 'trigger update' action pretty easily, but how do I change the value of sSearch_0,sSearch_1 etc. so they contain the value of my search boxes?
For instance, if I have:
[code]
[/code]
I want the value of 'filter_column1' to be assigned to sSearch_1 (aka sSearch_1 = $("#filter_column1").attr('value') which is called before the ajax action).
This discussion has been closed.
Replies
Documentation: http://datatables.net/api#fnFilter
Example: http://datatables.net/examples/api/multi_filter.html
Allan