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
530
IGX-GRID - Changing size dynamically
posted

Hello,
I use a CRUD grid in an igx-dialog. I would like to know if it is possible to dynamically change the size of the grid each time a row is added to the grid.

I have no size for igx-dialog and 100% for igx-grid (width and height)

Currently, the height of the grid does not change when I add a line and the vertical scroll is automatic.

The height adjustment is done if I close the igx-dialog and reopen it.

Have you any suggestions ?

Regards,

Philippe DUFEIL

Parents
  • 2680
    Verified Answer
    Offline posted

    Hi Philippe,

    Thank you for posting to Infragistics Community!

    I have been looking into your question and in an effort to test this behavior created a small StackBlitz sample with a similar setup.

    While I did try to replicate the configuration with the grid having width and height set to ‘100%’ and the dialog not having explicit size, I am a little confused by this, as thus, the grid’s height extends to fill the entire viewport vertically, so there is nowhere further to adjust to. Moreover, form your screenshots, it appears that there is certain height set somewhere after all, since the gird and dialog are of limited height.

    Could you please take a look at the sample and confirm if this is what you are trying to achieve? If not, it would be very helpful if you could fork, modify and send back the new sample to me along with some more details and steps to reproduce the observed behavior.

    In any case, what I can say is that, even in the sample at its current state, the scrollbar is accordingly adjusted with the addition of each new row. This is also valid if there was explicitly set height either on the grid, its container div, or the dialog. My suggest is to tweak the sample and see if the described behavior can be reproduced.

    Best regards,
    Bozhidara Pachilova
    Associate Software Developer

Reply Children