Local search with serverSide data load - pagination

Local search with serverSide data load - pagination

sandipbhoisandipbhoi Posts: 4Questions: 1Answers: 0

I have created the data table with serverside:true to load data on pagination request. But when do a search it again make call to server side, but I need it to be search locally on already fetched data.

Is it possible with data table? How the configuration should look like. Please help.

$app.global.searchDataTable = $('#searchResultTableId').DataTable( {
    processing: true,
     serverSide: true,
        ajax: {url: "./api/search/pagination/documents", type: "POST", data:searchCriteria},
        ordering: true,
        //fixedHeader: true,
        scroller: true,
        scrollY: ($(window).height() - 435) + 'px',
        scrollX: true,
        scrollCollapse: true,
        initComplete: function(settings, json) {
            $('.dataTables_scrollBody thead tr').css({visibility:'collapse'});
        },
        fixedColumns:   {
            leftColumns: 3
        }
    } );

This question has accepted answers - jump to:

Answers

This discussion has been closed.