Hi!
In my application I need a feature whenever the user changes the windows size, I need to change the grid's height according to this resize event. This way the grid's content will be scrollable and not the entire grid.
My solution works perfectly when the windows height is decreased. The problem occurs if I want to increase the window's height because I don't know how much height does the grid need to display all of his rows (non virtual scroll). Therefore when the grid has for example only 1 datarow, but the available space is much more there will be a lot of empty space between the grid's datarow and the pager.
My question is how can I know that how much height does the grid need to display it's datarows? Or (if it's not possible) how can I avoid the problem which I described before?
Example application:
https://stackblitz.com/edit/grid-auto-height-resize