[CLOSED] panel height auto adjust height according to the loaded page'height

  1. #1

    [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:

    <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]
  2. #2
    Hi @hujq,

    Quote Originally Posted by hujq View Post
    So, have you tried this suggestion?
    http://forums.ext.net/showthread.php?11673#post48391

    You should use a Loader's Load event in Ext.NET v2 instead of a Panel's Update one in Ext.NET v1.
  3. #3

    ok

    Quote Originally Posted by Daniil View Post
    Hi @hujq,



    So, have you tried this suggestion?
    http://forums.ext.net/showthread.php?11673#post48391

    You should use a Loader's Load event in Ext.NET v2 instead of a Panel's Update one in Ext.NET v1.

    thanks! I have solved the the problem using your suggestion! thank you very much!

Similar Threads

  1. Auto height on CenterLayout example page
    By Alexx in forum 1.x Help
    Replies: 7
    Last Post: Apr 29, 2013, 3:25 PM
  2. [CLOSED] How to set Auto Height of Tab Panel in ext js 4.0/ext.net 2.1
    By advBackOffice in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 07, 2012, 3:18 AM
  3. [CLOSED] How to set Portlet height based on auto load url page
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 22, 2011, 4:07 PM
  4. How to set auto height for a panel?
    By ganesh.tony in forum 1.x Help
    Replies: 0
    Last Post: Jul 01, 2011, 5:26 AM
  5. [CLOSED] CheckboxGroup Auto-Width/Height adjust
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 21, 2010, 10:05 AM

Posting Permissions