Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35272

Column filtering in server side - parameter is not sending

$
0
0

Hi.

I have a problem in a column filtering with server-side processing. The parameter search value is not send! When i show query string parameters, the columns[0][search][value] aways is empty!

I using Individual Column Filtering https://datatables.net/examples/api/multi_filter.html example.

Tks for help!!

My code:

$(document).ready(function() {
     $('#example tfoot th').each( function () {
            var title = $('#example thead th').eq( $(this).index() ).text();
            $(this).html( '<input type="text" placeholder="Search '+title+'" />' );
      } );
   
      var table = $('#example').DataTable( {
        "bFilter": false,
        "processing": true,
                "serverSide": true,
                "ajax": 'server_side.php',
        "scrollX": true
    } );
             
    table.columns().eq( 0 ).each( function ( colIdx ) {
        $( 'input', table.column( colIdx ).footer() ).on( 'keyup change', function () {
            table
                .column( colIdx )
                .search( this.value )
                .draw();
        } );
    } );
} );

Viewing all articles
Browse latest Browse all 35272

Trending Articles