Categories | Question details Back To List | ||||||||
Grid Auto Width Is there a way to make the grid _always_ be the width of the window (even when the window is resized)? Answer posted by Stanislav (support) on Dec 09, 2009 01:39 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. Answer posted by Alexey Kulikov on Dec 09, 2009 01:45 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. Answer posted by Stanislav (support) on Dec 09, 2009 02:19 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 ) Attachments (1)
|