| Sample: dhtmlxGrid | Grid with subgrid | dhtmlxGrid main page |
You can set subrow and subgrid ("sub_row_grid" excell) for the grid cell.
Subrow's data can be set in xml ("sub_row" excell) or loaded from other file by ajax ("sub_row_ajax" excell).
Just try to open cell
mygrid.setColTypes("sub_row,edtxt,ed,price,ch,co,ra,ro"); --------------------------XML--------------------------- <?xml version="1.0"?> <rows> <row id="1"> <cell type="sub_row_ajax">data.txt</cell> <cell>Loaded by ajax</cell> ... </row> <row id="2"> <cell type="sub_row_grid">sub.xml</cell> <cell >Sub grid 1</cell> ... </row> <row id="3" > <cell type="sub_row_grid">sub.xml</cell> <cell>Sub grid 2</cell> ... </row> <row id="4"> <cell>350</cell> <cell>The Green Mile</cell> ... </row>
| © DHTMLX LTD. All rights reserved |