Using more than one setSubGrid at once problem

I have problem to use more then one grid type excell in grid.

Im using ID to bind subGrid rows to main rows.

With 1 grid excel everything works fine, but when I add second grid cell then the second grid values stays as ID and are not translated to subGrid values.
What is interesting: dblclick on the second grid cell will translate ID to proper value.

Steps to reproduce using sample pro_linked_grid:


subgrid2 = new dhtmlXGridObject(‘gridbox_sub2’);
subgrid2.setImagePath("…/…/codebase/imgs/");
subgrid2.setHeader(“Name,UID,Total count”);
subgrid2.setInitWidths(“100,100,100”)
subgrid2.enableAutoHeight(true);
subgrid2.setColTypes(“ro,ro,ro”);
subgrid2.init();
subgrid2.setSkin(“modern”);
subgrid2.loadXML(“books.xml”,function(){
})

subgrid = new dhtmlXGridObject(‘gridbox_sub’);
subgrid.setImagePath("…/…/codebase/imgs/");
subgrid.setHeader(“Name,UID,Total count”);
subgrid.setInitWidths(“100,100,100”)
subgrid.enableAutoHeight(true);
subgrid.setColTypes(“ro,ro,ro”);
subgrid.init();
subgrid.setSkin(“modern”);
subgrid.loadXML(“authors.xml”,function(){
mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setImagePath("…/…/codebase/imgs/");
mygrid.setHeader(“Sales,Book Title,Author,Price,In Store,Shipping,Bestseller,Date of Publication”);
mygrid.setInitWidths(“50,150,100,80,80,80,80,200”)
mygrid.setColAlign(“right,left,left,right,center,left,center,center”)
mygrid.setColTypes(“dyn,grid,grid,price,ch,co,ra,ro”);
mygrid.setSubGrid(subgrid2,2,0);
mygrid.setSubGrid(subgrid,1,0);
mygrid.init();
mygrid.setSkin(“modern”);
mygrid.loadXML(“linked_grid.xml”);
});

NOTICE:
Im using different row ID for authors and books to avoid ID collisions

Im not found any solution on this problem, please help.

This issue confirmed and fixed. Fixed file will be send you by e-mail.