serverside datatable search on every column

serverside datatable search on every column

ratikaratika Posts: 2Questions: 1Answers: 0

I am using server side dataTable , I want to know how can I enable search on every column(some column contains select box). I was referring http://legacy.datatables.net/ref link, here I saw aoSearchCols can be used for searching, but it is not working my current script is

 $(document).ready(function() {
  $('#LogTable').dataTable({
    "bFilter": true,
    "bSort": true, 
    "bProcessing" : false,
    bServerSide : true,
    sAjaxSource : "./Log!List.action",
    sServerMethod : "POST",
    "columns": [
        { "data": "LogId" },
        { "data": "tableName" },
        { "data": "columnName" },
        { "data": "oldValue" },
        { "data": "newValue" },
        { "data": "changeTypeText" },
        { "data": "changedByName" },
        { "data": "changedOn" },
    ],
    "aoSearchCols": [
        { "data": "LogId" },
        { "data": "tableName" },
        { "data": "columnName" },
        { "data": "oldValue" },
        { "data": "newValue" },
        { "data": "changeTypeText" },
        { "data": "changedByName" },
        { "data": "changedOn" },
    ]
});

});

do anyone know how this can be done

Things i am using: JQuery datatable and Java Struts 2

This discussion has been closed.