Filter datatables in initialization

Filter datatables in initialization

adromiladromil Posts: 53Questions: 4Answers: 0
edited August 2013 in General
Hi Everyone,

I would like to ask if there is a way to filter datatable server-side in initilization?

I've tried a code that goes something like this:

[code]
function listTable(arg1, param2, value3) {
var searchTbl = $("#tblsearch").dataTable({
"bRetrieve": true,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "server-side.php",
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": false,
"bAutoWidth": false
});

searchTbl.filter(arg1, param2, value3);
searchTbl.fnDraw();
}

[/code]

I hope anyone can provide me inputs.

Best regards
This discussion has been closed.