Check documentation for the latest version of dhtmlxSuite enableAutoHeight DHTMLX Docs

enableAutoHeight

enables autoheight of the grid

void enableAutoHeight(boolean mode,number maxHeight,boolean countFullHeight);
modebooleantrue/false
maxHeightnumbermaximum height before scrolling appears (no limit by default)
countFullHeightbooleancontrol usage of maxHeight param:if true,all grid height included in max height calculation,if false(default)-only data part(no header)of the grid included in it

Example

//enable auto height mode
myTreeGrid.enableAutoHeight(true);
//disable auto height mode
myTreeGrid.enableAutoHeight(false);
//enable auto height mode, set maximum height before scrolling appears, 
//only data part included in max height calculation
myTreeGrid.enableAutoHeight(true,100);
//enable auto height mode, set maximum height before scrolling appears, 
//all grid height included in max height calculation
myTreeGrid.enableAutoHeight(true,100,true);

Back to top