Closed flanderboy closed 5 years ago
I suspect there might combination of two potential problems.
You are deselecting checkboxes when cell is initially created with this.api().cell(td).checkboxes.deselect(true)
. If combined with other parameters, this may lead to effect you're describing.
Make sure that the first column contains unique data. I see that you're using site_id
property but there is no data property assigned to the first column with columns.data
option.
Consider creating an example on JSFiddle based on one of these examples to further demonstrate the problem.
Hello everyone, I have a problem with my implementation of dataTable and Checkbox plugin. When the page is loaded and datatable draw is completed, i check "Select All" checkbox on the header and I see
console.log(dt.rows({selected: true}).indexes().length) = 20
but, if I go to page 2 I do not see rows selected and when I go back to page 1, the "Select All" checkbox on the header is unchecked.
If I reload the page, go directly to page 2 and back on page 1 and I click the "Select All" checkbox on the header, I See 20 (console.log) and if I go to page 2 all rows are selected.
Any idea