my row selected message show message not correct

my row selected message show message not correct

systemsNatusystemsNatu Posts: 11Questions: 4Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
when i select muti row , the selected message is always show '1 row selected' , acturly i selected more than one row, why?

there is my code:
$('#example').dataTable({
AutoWidth: false,
deferRender: false,
deferRender: false,
scrollY: 700,
scrollX: true,
scrollCollapse: true,
paging: true,
lengthMenu: [[10, 25, 50, -1], [10, 25, 50, "All"]],
pageLength: 25,
processing: true,
columns: [{ data: 'check', defaultContent: '' }],
columnDefs: [{
'targets': 0,
"orderable": false,
"sortable": false,
'checkboxes': {
'selectRow': true
}
}],
select: {
'style': 'multi',
'selector': 'td:first-child'
},

})

Answers

  • systemsNatusystemsNatu Posts: 11Questions: 4Answers: 0

    I comment out some row select code , and click the cell not checkbox, and it work ,why

  • systemsNatusystemsNatu Posts: 11Questions: 4Answers: 0

    I fix it,
    the problem is JS library rend cover

    //cdn.datatables.net/select/1.3.1/js/dataTables.select.min.js
    must be place the last position than some other hand select library .
    e.g.
    //gyrocode.github.io/jquery-datatables-checkboxes/1.2.12/js/dataTables.checkboxes.min.js

    //cdn.datatables.net/select/1.3.1/js/dataTables.select.min.js
    must be place the last position than some other hand select library .

    it's work for me

Sign In or Register to comment.