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

Checking any row level checkbox also checks the header checkbox #124

Closed yxia-china closed 3 years ago

yxia-china commented 3 years ago

Hi,

I have implemented below example:

https://www.gyrocode.com/projects/jquery-datatables-checkboxes/examples/styling/icheck/

But it has 2 issues which we need to fix:

  1. Checking any row level checkbox also checks the header checkbox. Can this be avoided?

  2. Also, if I check the header checkbox it will check all the row level checkboxes. Then if I uncheck any of row level checkbox, header checkbox is still checked and it should be unchecked. Can this be fixed?

yxia-china commented 3 years ago

I fix it ,the checkbox need a unique ID ,thanks for the great plugin