Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kamaraju on Oct 13, 2009 23:56
open dhtmlx forum
Select all check box

hi,
i need a check box to placed on the header .When i select all checkboxs in the column should be checked.How to handle this .
Answer posted by Stanislav (support) on Oct 14, 2009 04:11
mygrid.attachEvent("onCheck",function(){
               document.getElementById("some_checkbox").checked = (this.getCheckedRows(ind).split(",").length == this.getRowsNum());
               return true;
})

Where ind - index of column with checkboxes ( zero-based )