Check documentation for the latest version 6.0 of dhtmlxSuite enableAutoHeight DHTMLX Docs

enableAutoHeight

enables autoheight of the grid

void enableAutoHeight(boolean mode,number maxHeight,boolean countFullHeight);

Parameters

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
myGrid.enableAutoHeight(true);
//disable auto height mode
myGrid.enableAutoHeight(false);
//enable auto height mode, set maximum height before scrolling appears, 
//only data part included in max height calculation
myGrid.enableAutoHeight(true,100);
//enable auto height mode, set maximum height before scrolling appears, 
//all grid height included in max height calculation
myGrid.enableAutoHeight(true,100,true);

Back to top