jquery-datatables-checkboxes
jquery-datatables-checkboxes copied to clipboard
"indeterminate" is not work
Problem with Checkbox 1.2.12. DataTables 1.11.5: When I just select one item ,it still appear select-all
Sorry, I cannot replicate it.
I updated a few examples (Basic Initialization, Styling - Awesome Bootstrap Checkbox) to 1.2.13 and they all work correctly in Firefox, Chrome and MS Edge.
If you could share an example demonstrating the problem based on one of the examples above, that would help to locate the issue. Thanks!
@mpryvkin
Update Solved:
https://j0t3p9.sse.codesandbox.io/
Sorry, I cannot replicate it.
I updated a few examples (Basic Initialization, Styling - Awesome Bootstrap Checkbox) to 1.2.13 and they all work correctly in Firefox, Chrome and MS Edge.
If you could share an example demonstrating the problem based on one of the examples above, that would help to locate the issue. Thanks!
'ajax': 'https://gyrocode.github.io/files/jquery-datatables/arrays_id.json',
//without columns
'ajax': 'https://gyrocode.github.io/files/jquery-datatables/objects.json',
Solved
Known Limitations Column containing checkboxes must have unique data. Using columns.data option set to null for the column containing checkboxes will result in unexpected behavior. Selecting rows on all pages using columns.checkboxes.selectAllPages option in server-side processing mode is currently not possible. In this mode only rows on the current page are selected, when “select all” control is clicked.
I had read this before but I thought to make a checkbox column it must be made empty column with data: null so data and checkbox do not conflict
The problem was with using objects as data and not using columns.data option to specify data to be used by column containing checkboxes.
The solution is to specify data using columns.data option, see jsfiddle.net/1as42f6t/.