enable Autohight

Dear sir,





i need horizontal and verticle scroll bar in grid and at the same time i need to use ‘enableAutoHeigth=true’ .





For example i have 50 records in the grid view. Under the grid i have '‘Update" Button. When i dont’ put ,‘enableAutoHeigth=true’ syntax then, there are some gap between grid data and 'Update ’ button.

if i put that syntax( ‘enableAutoHeigth=true’ ) then there is no gap between grid data and 'Update ’ button.



When i use ‘enableAutoHeigth=true’ that time i need horizontal and vertical scroll bar in the grid itself.



So what i have to do?



Thanks

You can use 2nd parameter of the enableAutoHeight() method to set maximum height before scrolling appears:
mygrid.enableAutoHeight(true,100);