Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ez on Apr 28, 2009 06:37
open dhtmlx forum
expandAll for sub_rows?

Is there an expandAll function to expand all sub_rows in grid just like tree type cells?
Answer posted by dhxSupport on Apr 28, 2009 07:14

Unfortunately there is no appropriate method to expand all sub rows. You should iterate through all rows and expand sub rows using open() method:

mygrid.loadXML("grid.xml",function(){

mygrid.forEachRow(function(id){

mygrid.cellById(id,0).open();

});

})