Local search with serverSide data load - pagination
Local search with serverSide data load - pagination
sandipbhoi
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:
This discussion has been closed.
Answers
Checkout this thread:
https://datatables.net/forums/discussion/comment/121079/#Comment_121079
Kevin
Thank you Kevin for your response.
So unfortunately we don't have the solution to this problem .
I feel this would be very valid requirement though. Hope it will be available in next version.
Its not something that I'm currently planning on adding. Server-side and client-side processing are two distinct modes and I don't believe they should be merged.
Allan
Thank you Allan