Is there a way to make the grid always be the width of the window (even when the window is resized)?
a) you can just place it in container with width=“100%”, grid will reflect container resizes.
or
b) you can use dhtmlxLayout in full-screen mode and place the grid in layout.
Hi!
I have put the grid into a div container with style=“width: 100%”; The grid fills in the whole div correctly on load, but if I scale the window, the grid remains in its initialized size.
I am using the grid in SPLIT mode, and there are way more columns (all sizes defined in pixels via XML) than there is space in the DIV, thus there is a scroller (works perfectly). I’d love for the grid to autosize when the window is resized.
Please check the attached sample.
The same approach works against the grid in split mode as well.
( beware that grid 2.0 or older will not support such behavior )
1260353889.zip (109 KB)