Master chekbox event

hello :slight_smile: ,

is there an event for the master checkbox in the grid ?
if not ,
is there a way to check/Uncheck the Master Chekbox in Javascript code to use it in the OnHeaderClick function event ?

Thank you

Please, try to use the onCheckbox event for the master checkbox:
docs.dhtmlx.com/api__dhtmlxgrid_ … event.html

Thank you very much

i solve this problem by adding the next code to the js file

dhtmlXGridObject.prototype._in_header_my_checkbox=function(t,i,c){
t.innerHTML=c[0]+""+c[1];
var self=this;
t.firstChild.onclick=function(e){
self._build_m_order();
var j=self._m_order?self._m_order[i]:i;
var val=this.checked?1:0;
self.forEachRowA(function(id){
var c=this.cells(id,j);
if (c.isCheckbox()) c.setValue(val);
});
(e||event).cancelBubble=true;
}
}