Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 05, 2007 10:40
open dhtmlx forum
If I set table height to 100% it truncates and applys scroll bars. Is it possible to simply consume however m...

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.
Answer posted on Mar 05, 2007 10:40

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
Answer posted by Alexandra (Support) on Dec 05, 2014 09:24

The information connected with javascript framework mobile and javascript calendar form also can help you, so please check it too.