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
Hi Philippe,
I am glad that the sample was helpful. Thank you for using Infragistics components!
Best regards, Bozhidara Pachilova Associate Software Developer
Hi Bozhidara,
As in your example, I have inserted the grid into a div container and this seems to fix my problem.
Best regards,
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 PachilovaAssociate Software Developer