hiding one column after filter
hiding one column after filter
simaRa
Posts: 6Questions: 3Answers: 0
Hi
I have a problem with filtering per one column. After I filter, one of my columns is hidden and "control word_wrap" icon is displayed
I would appreciate your quick answer
This discussion has been closed.
Answers
Hi @simaRa ,
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
Hi Colin, thank you for your answer
when I click on status and change it, one column is hidden and blue icon is displayed
let table = $('#tickets-table').DataTable({
//stateSave: true,
autoWidth: false,
responsive: {
details: {
type: 'column',
target: -1,
display: $.fn.dataTable.Responsive.display.modal({
header: function (row) {
let data = row.data();
return 'Details: ';
}
}),
renderer: $.fn.dataTable.Responsive.renderer.tableAll()
}
},
fixedHeader: {
header: true,
footer: true
},
order: [[1, "desc"]],
processing: true,
serverSide: true,
ajax: "{{ route('ticket.data') }}",
pageLength: 25,
columnDefs: [
{responsivePriority: 1, targets: 0},
{responsivePriority: 2, targets: -2},
{responsivePriority: 3, targets: -3},
{
render: function (data, type, full, meta) {
return "
";
}
}
],
"fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
Hi @simaRa ,
That's a lot of code to look at. We're happy to take a look, but please link to a test case. Instructions on how are in first reply.
Cheers,
Colin