In a grid I have a checkbox column and a #master_checkbox.
Fo rthe checkboxes an event handler “onCheck”. Unfordunately if I click master_checkbox the event fires for each checkbox per row and my onCheck event code will be executed for each.
In this special case I need to execute it only once - when master_checkbox has finalized all rom checkbox checks / unchecks.
I try to detach the onCheck event in onHeaderClick but won´t work.
Solve it manually by adding a single check on top of the grid. If clicked the onCheck event if detached, all row checkboxes are clicked / unclicked, function is called once if foreachrow has finished and event is attached again.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan