Apr 13, 2013, 4:02 PM
[CLOSED] panel height auto adjust height according to the loaded page'height
hi,
i have a panel on which initially i am loading another page in iframe mode. and on button click i load the content of another page in existing panel using me.PanelChildPages.loadcontent('test.aspx') command. the content of test.aspx page is large and in want this panel to adjust its height according to the page being loaded. i have tried 'autoheight' but its not working.
I cauht to the same problem here: http://forums.ext.net/showthread.php?11673-Panel-height
My aspx code as flow:
I wnat the loading panel auto adjust its height according the loaded page's content! please give some suggestions!
i have a panel on which initially i am loading another page in iframe mode. and on button click i load the content of another page in existing panel using me.PanelChildPages.loadcontent('test.aspx') command. the content of test.aspx page is large and in want this panel to adjust its height according to the page being loaded. i have tried 'autoheight' but its not working.
I cauht to the same problem here: http://forums.ext.net/showthread.php?11673-Panel-height
My aspx code as flow:
<ext:Panel ID="PanelMiddle" runat="server" BodyStyle="text-align:center;" BodyPadding="20"
AutoScroll="true" Flex="3">
<Items>
<ext:Panel ID="PanelLoadForm" runat="server" BodyStyle="text-align:center;" BodyPadding="10"
Flex="3">
<Loader ID="Loader1" runat="server" Mode="Frame">
<LoadMask ShowMask="true" />
</Loader>
</ext:Panel>
<ext:Panel ID="PanelXTemplate" runat="server" BodyStyle="text-align:center;" BodyPadding="10"
Height="1300" Flex="3">
<Loader ID="Loader2" runat="server" Mode="Frame">
<LoadMask ShowMask="true" />
</Loader>
<Items>
</Items>
</ext:Panel>
</Items>
</ext:Panel>
the code behind code: protected void Page_Load(object sender, EventArgs e)
{
this.PanelLoadForm.Loader.SuspendScripting();
this.PanelLoadForm.Loader.Url = String.Format("FirstSetpForm.aspx");
this.PanelLoadForm.Loader.Mode = LoadMode.Frame;
this.PanelLoadForm.Loader.DisableCaching = false;
this.PanelLoadForm.LoadContent();
this.PanelXTemplate.Loader.SuspendScripting();
this.PanelXTemplate.Loader.Url = String.Format("WorkFlowXTemplate.aspx");
this.PanelXTemplate.Loader.Mode = LoadMode.Frame;
this.PanelXTemplate.Loader.DisableCaching = false;
this.PanelXTemplate.LoadContent();
}
I wnat the loading panel auto adjust its height according the loaded page's content! please give some suggestions!
Last edited by Daniil; Apr 15, 2013 at 7:52 AM.
Reason: [CLOSED]