Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Height of igx-grid
posted

Setting the grid height in '%' does not seem to work. The grid renders with a height enough to display the number of records per page as specified/default number. As a result there is also no vertical scrollbar. In my case, the parent container div also has height in '%'.  But setting the grid height in 'px' works and the vertical scrollbar also shows if there are 'too many' records to display.

I do not want to use 'px' but '%' . Is there another way to achieve it?

Thanks

B.

  • 320
    Offline posted

    Hello,

    Thank you for contacting us.

    Vertical scroll in IgxGrid depends on the grid height, rowHeight and the number of records in your data source. If its necessary to set the height '%' in order to enable virtualization the number of records that you have in the grid and their rowHeight have to exceed the height the grid. Here you can read more detailed explanation about how the virtualization works and here you can see more information about the grid properties.

    If you need any further assistance, please contact us.