Jul 12, 2012, 7:41 PM
Stretching a Portal
Hello, I am working on getting Ext.Net purchased for our company and will post to the premium once that is in place. You folks created a fantastic library.
In the meantime, I am having troubles with a layout issue within a Portal. I have dug through many similiar examples and gotten close to what I need. What I need is when the browser loads, for the portal to take up 100% of the screen (vertically and horizontally) and the have the Portal Column take up 100% vertically and then have the Portlets take up a percentage height of that.
I can get it work when I specify an absolute height on the Portal Column, but I cant seem to find a way to have the Portal Column stretch to take up 100%.
Here is the example that I have that works. However, if I take out the Height="500" on the Portal Column. It does not work.
Any help you can provide would be greatly appreciated. Thank you.
In the meantime, I am having troubles with a layout issue within a Portal. I have dug through many similiar examples and gotten close to what I need. What I need is when the browser loads, for the portal to take up 100% of the screen (vertically and horizontally) and the have the Portal Column take up 100% vertically and then have the Portlets take up a percentage height of that.
I can get it work when I specify an absolute height on the Portal Column, but I cant seem to find a way to have the Portal Column stretch to take up 100%.
Here is the example that I have that works. However, if I take out the Height="500" on the Portal Column. It does not work.
Any help you can provide would be greatly appreciated. Thank you.
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Viewport ID="Viewport1" runat="server" Layout="VBoxLayout">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Portal ID="Portal1" runat="server" Layout="VBoxLayout" >
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:PortalColumn ID="PortalColumn1" runat="server" Layout="VBoxLayout" ColumnWidth="0.3" Height="500" >
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Portlet ID="portletA" runat="server" Title="Portlet A" Flex="1">
</ext:Portlet>
<ext:Portlet ID="portletB" runat="server" Title="Portlet B" Flex="2">
</ext:Portlet>
</Items>
</ext:PortalColumn>
<ext:PortalColumn ID="PortalColumn2" runat="server" Layout="VBoxLayout" ColumnWidth="0.7" Height="500">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Portlet ID="portletC" runat="server" Title="Portlet C" Flex="1">
</ext:Portlet>
<ext:Portlet ID="portletD" runat="server" Title="Portlet D" Flex="2">
</ext:Portlet>
</Items>
</ext:PortalColumn>
</Items>
</ext:Portal>
</Items>
</ext:Viewport>
</form>
</body>