Filter columns with server-side processing
Filter columns with server-side processing

Hello,
I try to set up columns filtering with server-side processing.
I know this is a question that have been already answered a few times, but all the solutions doesn't work for me.
This is my DataTable :
/*
* Creation of the datatable
*/
mosRuleTable = $('#rulesTable').DataTable( {
"sAjaxSource": "/mos/marketordersender/rules",
"bServerSide" : true,
"bProcessing" : true,
"bDestroy" : true,
"paging": true,
"ordering": false,
"info": false,
"aoColumnDefs": getMOSRuleDef(editMode),
"oLanguage" : {
"oPaginate" : {
"sFirst" : "First",
"sLast" : "Last",
"sNext" : "Next",
"sPrevious" : "Previous"
}
},
"sPaginationType" : "full_numbers",
"bFilter" : true,
"bSort" : false,
When i try to use table.columns().every( function () { to set up the filtering It say that columns is not a function.
Can someone help me ?
This discussion has been closed.
Replies
table
is a variable that contains the Datatables API. In your case you are usingmosRuleTable
. So you should usemosRuleTable.columns().every( function () {
.Kevin
Yes sorry, I just copy-paste the function in my post but I use
mosRuleTable.columns().every( function ()
in my codeThis is my code when i try to apply filtering :
Your code works here:
http://live.datatables.net/nefinihu/1/edit
Are you still having problems? If so then please update the test case to show the problem so we can help.
Kevin
Yes, still not working
Maybe it comes from the function
getMOSRuleDef(editMode)
where i get the aoColumnDefs :Are you still getting
set up the filtering It say that columns is not a function.
?Kevin
Yes, i don't understand why
In order for use to provide suggestions we will need to see the problem. Please post a link to your page or a test case replicating the issue.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin