addRow() with sub_row_grid

Hello,
I am trying to add a row with Script, but the first cell is a sub_row. If the grid loads data from xml, the celltype is “sub_row_grid”. And the value for this cell is a call to my php-file which load the details into the subgrid. In my case is the php-code this:
echo “ajax_kitas.php?modus=get_kontakte”;

But in the Javascript code a add the row on this way:
grid_kitas.addRow(newId, [“ajax_kitas.php?modus=get_kontakte”, dateString, “”, “”, “”, “”, “”, “”, “”,“0”],0);

But this doesnt work!!

How can I add a row with script and fill the sub_row-cell correctly?

Many thanks in advance!

Jens

You need to set the needed exCell type for a cell after adding.
For example:

mygrid.addRow("newId",["subgrid-cell","1","2","3","4","5"],0) mygrid.setCellExcellType("newId",0,"sub_row_grid"); mygrid.cells2(0,0).setValue("subgrid.xml")