If I set table height to 100% it truncates and applys scrol

If I set table height to 100% it truncates and applys
scroll bars. Is it possible to simply consume however much space it needs
without applying scroll bars? If I have to set a height in px that means I need
to know the table height and I won’t usually know that, it just depends how
many rows the user has added.


You can use a enableAutoHeight method:


           
grid.enableAutoHeigth(true); //grid never has scrolls, and use minimal required
place


           
grid.enableAutoHeigth(true,500); //grid will have scrolls only, if height of
grid > 500px

           
grid.enableAutoHeigth(true,“auto”); //grid will have scrolls only, if
height of grid > height of parent container