sub_row_grid AND enableAutoHeight problem - Solution include

Hello!

I found folowing issue in lates v.2.1 build 90226:


PROBLEM DESCIPTION:
When grid load sub_row_grid and is enabled the first click on “+” will expand sub_grid, bud the main grid size is broken (scrollers will be showed).

STEPS TO REPRODUCE:
Enable enableAutoHeight in pro_subgrids.html sample


FIX:
in: dhtmlxgrid_excell_sub_row.js

line 212:

if (that.parentGrid) {that.callEvent(“onGridReconstructed”,[]);
td._sub_grid.parentGrid.setSizes();
td._sub_grid.parentGrid.setSizes()
}


Problem confirmed , we will add some kind of fix, to the next version of grid ( thanks for suggested solution )
By the way, behavior can be corrected without code modification, just add the next line to the grid’s init

for sub-grids
mygrid.attachEvent(“onSubGridLoaded”,function(){
this.setSizes();
})

for plain sub-rows
mygrid.attachEvent(“onSubRowOpen”,function(){
this.setSizes();
})




And another thing:

Try attach footer to sub_row_grid, this will broke size of grid, and suggested fix will not work in this case.

This bug confirmed and fixed. Fixed file will be send you by email

Fix works

Hi,

Where can we get this fix?



>>Where can we get this fix


Please contact support@dhtmlx.com and provide your ref ID and we will send you fixed file