[GH #3540] How to detect checkboxes in a grid using events/callbacks?

Tags: #<Tag:0x00007efc6091e7f0>

hi,
we are using react handsontable in a website that and we are trying to use the checkbox functionality.
Basically what we want to do is select a few rows using checkbox and press a delete button that removes these rows (and does some other stuff using an api).

I have just not been able to find any callback for checkbox selected. I’m not an expert, so please excuse me - but any help would be much appreciated.

Anyone know how I can do this ?

Hi @sss
You are right, we do not have any checkbox events.

You would need to iterate using getDataAtCell() method to check which checkbox is selected ( === true). Or… you can use the afterChange hook to get indexes of rows that were checked http://jsfiddle.net/handsoncode/bo3wx7mw/