Oct 16, 2012, 8:58 PM
[CLOSED] Rendering a ViewPort with south region collapsed
Hi folks, some months ago i reported an issue regarding the ViewPort's rendering: http://forums.ext.net/showthread.php...s-not-rendered
It was resolved by ExtJs team, but after implementing another functionality - http://forums.ext.net/showthread.php...anel-s-content - the error comes alive again.
The following example just runs if the Collapsed property of _pnlSouth - line 26- is set to false. Going further, it's possible to collapse the _pnlSouth after 1 second, which demonstrates that the problem came back again. To collapse the panel, please do the following on line 34:
Thanks in advance
It was resolved by ExtJs team, but after implementing another functionality - http://forums.ext.net/showthread.php...anel-s-content - the error comes alive again.
The following example just runs if the Collapsed property of _pnlSouth - line 26- is set to false. Going further, it's possible to collapse the _pnlSouth after 1 second, which demonstrates that the problem came back again. To collapse the panel, please do the following on line 34:
pnlSouth.Listeners.AfterRender.Delay = 1000;
pnlSouth.Listeners.AfterRender.Handler = "App._pnlSouth.collapse();";
1 - View<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Viewport ID="_wmp" Layout="BorderLayout" Border="false" runat="server">
<Loader ID="Loader1" Url="/Example/FuncAbc/" Mode="Component" AutoLoad="true" runat="server">
<LoadMask ShowMask="true" />
</Loader>
</ext:Viewport>
2 - Actionpublic ContentResult FuncAbc()
{
ContentResult result = new ContentResult();
IList<AbstractComponent> lstRegions = new List<AbstractComponent>();
Panel pnlCenter = new Panel
{
Title = "Center Region",
Icon = Icon.Application,
Html = "Content",
Border = false,
Collapsible = false,
Split = true,
Region = Region.Center
};
lstRegions.Add(pnlCenter);
Panel pnlSouth = new Panel
{
ID = "_pnlSouth",
Title = "South Region",
Icon = Icon.Application,
Html = "Content",
Border = false,
Collapsed = true,
Collapsible = true,
Split = true,
Region = Region.South,
TitleCollapse = true,
Floatable = false,
Height = 300,
};
lstRegions.Add(pnlSouth);
result.Content = ComponentLoader.ToConfig(lstRegions);
return result;
}
Any ideas to overcome this issue?Thanks in advance
Last edited by Daniil; Oct 17, 2012 at 2:01 PM.
Reason: [CLOSED]