FixedColumns not working with AJAX source and disabled serverSide
FixedColumns not working with AJAX source and disabled serverSide
quadronet
Posts: 1Questions: 1Answers: 0
in FixedColumns
Hi,
we are using AJAX source with disabled serverSide processing (so the search filtering and sorting remains fully on client). With this setting the fixedColumns is not working. As soon as we set serverSide to true it works. Is it possible to make it working without serverSide processing?
$('#stats_table').DataTable( {
dom: 'frtip',
ajax: {
url: serverurl,
type: "POST",
data: function(d) {
prepareStatsTablePostData(d);
},
dataSrc: function (d) {
return d
}
},
responsive: false,
paging: false,
autoWidth: true,
searching: true,
processing: true,
fixedColumns: true,
deferRender: true,
scrollY: 400,
scrollX: true,
scrollCollapse: true,
serverSide: false,
info: false,
columnDefs: [...],
});
Thank you,
Jan
Answers
As you can see in this example FixedColumns works without server side processing. The problem is specific to your page. Do you get errors in the browser's console?
Please post a link to your page or a test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin