i want to implement a selector checkbox in my table i already check all your ex but its not working
i want to implement a selector checkbox in my table i already check all your ex but its not working

var $dataSocietyTable = $('#data');
// execute the below code only where we have this table
if ($dataSocietyTable.length) {
//console.log('Inside the table!');
var jsonUrl = '/creditdebit/credit/creditDebit';
$dataSocietyTable.DataTable({
lengthMenu: [[10, 30, 50, -1], ['10', '30', '50', 'ALL']],
pageLength: 10,
scrollCollapse: true,
ajax: {
url: jsonUrl,
dataSrc:''
},
fixedColumns: {
leftColumns: 2
},
columnDefs: [ {
targets: 0,
checkbox:{
selectRow:true
}
} ],
select: {
style: 'os',
selector: 'td:first-child'
},
columns: [
{
data: 'originalName'
},
{
data: 'newDate'
},
],
});
}
This discussion has been closed.
Answers
This code:
suggests you are using the Gyrocode Checkboxes plugin. If you are unable to make it work then please post a link to your page or a test case replicating the issue so we an help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin