gyrocode / jquery-datatables-checkboxes

Checkboxes is an extension for the jQuery DataTables library that provides universal solution for working with checkboxes in a table.
https://www.gyrocode.com/projects/jquery-datatables-checkboxes/
MIT License
150 stars 61 forks source link

data source html faces unexpected checkbox behavour #98

Closed gercker closed 5 years ago

gercker commented 5 years ago

Hi Michael,

my name is Gerhard, cannot get the nice checkbox behaviour with data source HTML. As soon as I remove the ajax option from the DataTable constructor, there is no more undefined checkbox in the header (when only some boxes are checked), and checking one of several unchecked boxes always checks the header box (should be undefined). Please see line 83 in the attached code (basically taken from your website):

datatable-checkbox.txt

mpryvkin commented 5 years ago

One of the limitations of the jQuery DataTables plug-in is that column containing checkboxes must have unique data.

See Data sources - HTML example where first column contains unique values - 1, 2, 3, etc.