PDA

View Full Version : [CLOSED] How to set Layout of GridPanel and Viewport dynamically



aditya
Apr 03, 2015, 9:34 AM
I want to set grid panel layout dynamically . i have two grid panel inside one viewport in some situation i want to use 'borderLayout' and in other situation i want to use 'FitLayout'

Daniil
Apr 03, 2015, 12:05 PM
Hi @aditya,

First of all, I should say that there is no way to switch between FitLayout and BorderLayout on the fly without re-rendering the entire container.

If you clarify the requirement, we might think on that in greater details.

Specifically, I would like to understand, on what conditions you want to change the layout.

Also how you want to use a FitLayout for two GridPanels. FitLayout supports the only child component.