Column select with cell deselect issue
Column select with cell deselect issue
Link to test case: http://live.datatables.net/nocurazo/1/edit
Debugger code (debug.datatables.net): N/A
Error messages shown: N/A
Description of problem:
I'm not sure if this is a bug or a misunderstanding on my part, but I am attempting to implement a DT with a checkbox in the header that selects/deselects an entire column. This customer would like to be able to select/deselect individual cells (as needed) in the column.
In the above example, the column is selected (or can be by checking the box at the top) and if a cell is deselected the count the the bottom does change, but the cell does not remove the selected
class.
Thanks for all you do!
This question has an accepted answers - jump to answer
Answers
You are using two different modes of row selection. You are using column mode (
column().select()
) in your event handler and cell mode when clicking in the table. Instead of using column mode usecells().select()
to select using cell mode. For example:http://live.datatables.net/nocurazo/2/edit
Kevin
Its always something simple. Thanks for your assistance, again!