Scenario: I have a PortalLayout that should support two visual modes: a view mode and an edit mode.
The user should be able to switch from one mode to the other through a toggle button.
In view mode the portlets have only a body with rounded corners, but without header controls (something similar to the corners example).
In edit mode they should also show a header as normal windows (with minimize, maximize and restore icons).
Eventually in view mode some blank space may be reserved for the invisible header, as I don't want any automatic resizing when switching mode.
Problem: I've found no way to show the header after the portlet has already been drawn without it, as per Window.setShowHeader() javadoc saying
Question: is there any way to show/hide the header after a portlet/window has already been created (and drawn)?
Using Smartgwt 4.0p
SmartClient Version: v9.0p_2014-01-05/LGPL Development Only (built 2014-01-05)
The user should be able to switch from one mode to the other through a toggle button.
In view mode the portlets have only a body with rounded corners, but without header controls (something similar to the corners example).
In edit mode they should also show a header as normal windows (with minimize, maximize and restore icons).
Eventually in view mode some blank space may be reserved for the invisible header, as I don't want any automatic resizing when switching mode.
Problem: I've found no way to show the header after the portlet has already been drawn without it, as per Window.setShowHeader() javadoc saying
@throws IllegalStateException this property cannot be changed after the component has been created
Using Smartgwt 4.0p
SmartClient Version: v9.0p_2014-01-05/LGPL Development Only (built 2014-01-05)
Comment