Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jan 22, 2009 07:49
open dhtmlx forum
all checkboxes "unchecked" initially

How to set all checkboxes in tree-grid to "unchecked" initially?

Thanks
Answer posted by Support on Jan 22, 2009 08:09
The state of checkboxes based on value in XML, if it has 0 as value - they will be unchecked.
Also, you can use 

grid.loadXML(function(){
    grid.forEachRow(function(id){ grid.cells(id,INDEX).setValue(0); });
});

where INDEX - index of necessary column