Export only the selected row?
Export only the selected row?
jimboy
Posts: 20Questions: 9Answers: 0
Hi,
How to export a selected row that uses checkbox as a selection? This sample here exports single row https://datatables.net/extensions/buttons/examples/print/select.html
but is it possible using checkboxes for multi-selection?
elementID.dataTable({
select: true,
dom: 'lBfrtip',
buttons: [
{
extend: 'print',
text: 'Print Selected',
exportOptions: {
modifier: {
selected: true
}
},
},
],
});
Thanks,
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Have you looked at the Select Extension Checkboxes example?
Kevin
Hi kthorngren,
Although the sample allows multiple-selection in conjunction with the Ctrl keyboard button, how to allow multi-selection just by clicking the checkbox?
Thanks,
Ok, I found it from here and looks promising. https://www.gyrocode.com/projects/jquery-datatables-checkboxes/
Is there a built-in feature from the above link?
Use
select.style
set tomulti
. Example here.Allan