Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ritchie Masterson on Jun 30, 2009 06:01
open dhtmlx forum
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.
Answer posted by dhxSupport on Jun 30, 2009 07:09
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();
   });
});
Answer posted by Ritchie Masterson on Jun 30, 2009 07:20
Thanks...that worked a treat!