Why server side DataTable multiple column search not working?

Why server side DataTable multiple column search not working?

rexsateeshrexsateesh Posts: 1Questions: 1Answers: 0

Hello Guys

I am using server side DataTable and its getting records and working with the pagination also but when i am searching or sorting any column then its requesting to current Page ADDRESS URL not on AJAX URL which i had given in DataTable configuration.

My DataTable configuration JS code is

var csrfToken = $("meta[name='csrf-token']").attr("content");
    
var oTable = $("#tableClientData").dataTable({
        "processing": true,
        "serverSide": true,
        "ajax": {
            url: siteurl + "/clientdata/activities", 
            type: "POST",
            data: function(d){
                d._token = csrfToken;                
            }
        },
        "sPaginationType": "bootstrap",
        "sDom": "t<'row'<'col-xs-6 col-left'i><'col-xs-6 col-right'p>>",
        "bStateSave": false,
        "iDisplayLength": 8,
        "aoColumns": [
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            {"bSortable": false}
        ]
    });

    oTable.columnFilter({
        "sPlaceHolder": "head:after",
        "aoColumns": [
            {type: "text", ajax: ''},
            {type: "text"},
            {type: "text"},
            {type: "text"},
            {type: "text"},
            {type: "text"},
            {type: "text"},
            {type: "text"},
            {type: "text"},
            {type: "text"},
            {type: "text"},
            {type: "text"},
            {type: "text"},
            {type: "text"},
            null
        ]
    });

Please help me.

Thanks

This discussion has been closed.