server side filtering with inputs

server side filtering with inputs

paperboardpaperboard Posts: 4Questions: 0Answers: 0
edited August 2011 in General
Hello,

I am having trouble integrating the server side example with the column filtering using inputs. Does anyone have a simple primer on how to integrate server side data with column filters using inputs?

Thanks.

Replies

  • paperboardpaperboard Posts: 4Questions: 0Answers: 0
    I solved my problems, and now have a wonderful data table. i want to leave my solution here for other new users. I started with the server side processing example, and added only the minimal amount of code. The biggest thing was downloading the columnFilter API plugin.

    [code]





    $(document).ready(function() {
    var oTable = $('#example').dataTable( {
    "bProcessing": true,
    "bServerSide": true,
    "sAjaxSource": "scripts/server_processing.php"
    } ).columnFilter(
    {sPlaceHolder: "head:after",
    aoColumns: [ {type: "text"},
    {type: "select", values: [ 'Firefox','Seamonkey','Mozilla'] },
    {type: "text"},
    {type: "text"},
    {type: "text"}
    ]

    }
    );
    } );

    [/code]

    There are two bugs in jquery.dataTables.columnFilter.js which are easily fixed by perusing the bug report for that project.

    thanks for this project allan
This discussion has been closed.