I have a datagrid that is updated periodically, and the number of rows inside it is constantly growing over time. It is inside the parent div with a height of 60% of the screen.
If I set autoheight to say 5 rows, the table works correctly. When the sixth row is added, a scrollbar appears within the datagrid, and I can scroll up / down, and the headers remain fixed at the top and visible. Unfortunately, when I have a lot of data, this is a waste of space - I have 60% of the screen height for work, but only 5 lines are displayed at a time.
If I set autoheight to false, the resulting scrollbar is anchored to the parent div. Scrolling up / down allows me to see the data, but the headers at the top of the grid scroll out of view.
Is there a way to ask the datagrid to display as many rows as can fit and provide a scroll for the rest?
---- EDIT ----
Setting autoheight to false will be exactly what I want if the datagrid will resize with the parent when resizing my browser. Is there a good way to achieve this?
source share