How to add a checkbox in grid Header to checkAll/uncheckAll checkboxes of rows?

Hello.
I have Dhtmlx 6.
How can I add a checkbox in grid Header to checkAll/uncheckAll checkboxes of rows?
(like #master_checkbox in Dhtmlx 3, 4)

There is no native master checkbox in the dhtmlxGrid, but You are able to make your own one

You may place any custom html content to your header and make it trigger the data iteration with the forEach() method:

and change the value of your checkbox cell using the update():

Something like:
https://snippet.dhtmlx.com/u7cmld9y