Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Arno Vanbeginne/Xenon54 on Jul 15, 2008 06:33
open dhtmlx forum
expanding row with subgrid and/or saving grid-state with subgrids

Hi,

I have a grid loaded from an xml file with subgrids, also loaded from generated xml files.
I need to be able to save the state of the grid and load that state when the grid is reopened/refreshed.
So if the first line has a subgrid and is opened then it should also be open and showing the subgrid when the grid is refreshed or reopened.
I tried the grid.openItem(RowId) but it gave the error "this._h2 has no properties" in firebug (firefox debugger). I presume it doesn't work with subgrids?
Is there a way to get this accomplished?
thanks.
Answer posted by Support on Jul 15, 2008 06:50
To open subgrid you can use next code   
    grid.cells(i,j).open();

where i,j - coordinatest of related cell

http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Excell_API_reference.html#grid_excellsapi