Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by rahul on Jul 02, 2009 04:18
open dhtmlx forum
subgrid

hi

How to link subgrid xml path to the first cell of grid.

i come through all Sample and Document from your site but not clear from implement points of view, its all theoritical knowledge.

can you please send me some coding example of :

1) how to wright XML for grid with subgrid.

2)what is te working code to link xml to cell, and

3)whenever i run, i m getting  error: incorrect cell type: sub_grid    code: mygrid.setColTypes("sub_grid,ro,ro,ed,ra,ed,ch,ed");

AND please send me Dhtmlxgrid_excell_sub_row.js and Dhtmlxgrid_excell_sub_row_grid.js files

thx.

Answer posted by dhxSupport on Jul 02, 2009 05:30
Sub grid functionality is availible in PRO version only. If you have PRO version you should attach dhtmlxgrid_excell_sub_row.js file to your page which is availible in your dhtmlxGrid package. 
>> how to wright XML for grid with subgrid.
"sub_row_grid" cell's value should be path to the sub grid xml file:
<cell type="sub_row_grid">sub.xml</cell>
sub.xml file should contain grid configuration part to define number of column in sub grid
>>what is te working code to link xml to cell
You can find working code example at your dhtmlxGrid package dhtmlxGrid\samples\extended_modes\pro_subgrids.html