Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by muhabbat on Apr 02, 2009 20:37
open dhtmlx forum
Subgrid height problem

Hi,
I m facing a problem, In my case my subgrid is populated dynamically.but my parentGrid not increases its height to adjust the complete subGrid , only header of child grid displays.

When I collapse it and expand it again then my parentGrid resizes itself and display full subgrid (actually this time my subgrid was populated).
What I should do To increase the height of Parent grid when the user expand it First time.


Regards
Answer posted by dhxSupport on Apr 03, 2009 03:35

You should set enableAutoHeight(true) to the parent grid and add following code to the parent grid init:

mygrid.attachEvent("onSubGridLoaded",function(){
  mygrid.setSizes();
 });