fnFilter doesn't work

fnFilter doesn't work

KrlinhosKrlinhos Posts: 8Questions: 0Answers: 0
edited March 2013 in General
Hello,

I have in my foot on dataTable a input like the example http://www.datatables.net/release-datatables/examples/api/multi_filter.html but, it doesn't work fine...

I use codeigniter and server-side processing. I show you my javascript code:

[code]
oTable = $('#tablaRegistros').dataTable({
"bProcessing": false,
"bServerSide": true,
"sServerMethod": "POST",
"sAjaxSource": "http://localhost/imareal/especie/getTable",
"iDisplayLength": 20,
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"aaSorting": [[0, 'asc']],
"aoColumns": [
{ "bVisible": true, "bSearchable": true, "bSortable": true },
{ "bVisible": true, "bSearchable": true, "bSortable": true },
{ "bVisible": true, "bSearchable": true, "bSortable": true }
]
}).fnSetFilteringDelay(700);

$('tfoot input').keyup(function(){
oTable.fnFilter($(this).val(),$("tfoot input").index(this));
});
[/code]

but when I write in the input does anything... why?? Idea???

Thanks! :)

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    You are using server-side processing, so filtering is done at the server. It is up to your 'getTable' script to do the filter. See: http://datatables.net/usage/server-side

    Allan
  • KrlinhosKrlinhos Posts: 8Questions: 0Answers: 0
    Thank you Allan :)
This discussion has been closed.