Hello,
I’m using the “Individual column searching (text inputs)” explained in
https://datatables.net/examples/api/multi_filter.html
but I have a problem.
When I change page and later come back, the values written inside the input controls are not displayed. The filters work (i.e. the columns contain only the filtered results), but the searched words are not visibile. The global Search is instead populated.
In DataTable constructor I set:
`stateDuration: -1, //-1 means session storage
`stateSave: true,
and
`initComplete: function () {
`var r = $('#myTableId tfoot tr');
`r.find('th').each(function(){
`$(this).css('padding', 8);
`});
`$('#myTableId thead').append(r);
`$('#search_0').css('text-align', 'center');
`var api = this.api();
`// Apply the search
`api.columns().every(function() {
`var that = this;
`$('input', this.footer()).on('keyup change', function() {
`if (that.search() !== this.value) {
`that.search(this.value).draw();
`}
`});
`});
`},
Could anyone help me figure out where I'm wrong?
Thanks in advance, Leonardo