subgrid height problem

Hi,

Initially my subgrid has some columns hidden. When I show hidden columns using header menu the header height becomes larger but one of the rows is not visible anymore. If i hide subgrid and then show it again it appears correctly

I initialize subgrid this way
granulesGrid.attachEvent(“onSubGridCreated”, function(sub){

        sub.setHeader(",Product Type,View/Download,Algorithm,Version,Satellite,Orbit#,Instrument," + 
                       "Start Time, Stop Time, Format, File Name");

      
        sub.setInitWidthsP("4,*,*,*,*,*,*,*,*,*,*,*");

        sub.setColTypes("ch,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro");
        sub.setColAlign("left,left,left,left,left,left,left,left,left,left,left,left");
        sub.setColSorting("str,str,,str,str,str,str,str,str,str,str,str");
        
        sub.setColumnHidden(8,true);
        sub.setColumnHidden(9,true);
        sub.setColumnHidden(10,true);
        sub.setColumnHidden(11,true);
        
        sub.init();
        sub.enableHeaderMenu();
      
        return true;
    });

granulesGrid.attachEvent(“onSubGridLoaded”, function(sub){

        $("div.dhx_sub_row div.xhdr").attr("title",
        "Left click to sort rows. Right click to hide/show columns.");

        return true;
    });

Any ideas on what I should try ?

thanks

Victoria

You can try to use

sub.attachEvent("onColumnHidden", function(){ sub.callEvent("onGridReconstructed",[]); return true; });

It will force parent grid resizing, each time after column hiding in the sub grid.

this worked perfectly. Thank you!

Victoria