dhtmlxGrid - sub grid expanded state

Hi Guys,

I have a grid which contains a sub grid per row based on the



'type=“sub_row_ajax” function.



Is there a way to have the grid on load to display all the sub grids without having to manually click on the + icon?



Rgds,

Ritchie.

You can expand sub grid using cell’s method mygrid.cellById(rowID,cellIndex).open();
mygrid.load(“grid.xml”,function(){
mygrid.forEachRow(function(id){
mygrid.cellById(id,0).open();
});
});

Thanks…that worked a treat!