Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Soumya on Sep 23, 2008 22:26
open dhtmlx forum
dhtmlx grid uncheck all checkbox

Hi,

I am using dhtmlx grid with check box. But while the page onload all the check box are checked. Can u please tell me how to uncheck all the checkboxes on page load.

Thanks
Answer posted by dhtmlx support on Sep 24, 2008 05:54
You can try to use the following approach:
function doAfterXMLLoaded(){
    grid.forEachRow(function(id){
       grid.cells(id,INDEX).setValue("0");
    })
}
grid.loadXML(url,doAfterXMLLoaded)

Where INDEX is the index of "ch" column
Answer posted on Sep 24, 2008 22:48