Set the datagrid paging number based on VH

Does anyone know if it is possible to get the vertical size of the window during the onload event so that i can use it to set the page size for the datagrid?

I am using calc(100vh - 140px) to set the DG height but it would be nice if i could use that to set the number of rows displayed per page. I thought I could use getComputedStyle but not sure if this is possible.

Thanks John

Hi @johnmu,

Such technique might not work as expected since the rows height of the table may vary depending on cells content.