Automatic sizing of the datagrid

Hi,
I created a datagrid with a page siez of 50, so if the datagrid is higher than the browser window. I have to scroll to the bottom of the page to find the footer.
Is actually possible to size the datagrid inside a fixed height container and if the page size produces a grid bigger than the actual window, the scrolling is inside the grid itself, and I can see both the header and the footer, and to scroll the content are in the middle.

thanks,
Luca

You can try setting the height of the DataGrid to 100% (its container should have set height):

<RadzenDataGrid style="height: 100%">

I find setting the heights this way works best:

calc(100vh - 150px)

Vh is view height

Make sure you include the spaces around the minus symbol.

3 Likes

thanks to both. looks like is working fine