[CLOSED] How Can I get the page size that is loaded from a panel?

  1. #1

    [CLOSED] How Can I get the page size that is loaded from a panel?

    Hi,

    I need to chage a panel size depending of a page size.

    Can I get the page size that is loaded from a panel?



  2. #2

    RE: [CLOSED] How Can I get the page size that is loaded from a panel?

    Hi,

    Try the following

    Base page
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            
            <ext:Panel runat="server" Title="Panel" Header="false" Border="false">
                <AutoLoad Url="Child.aspx" Mode="IFrame"></AutoLoad>
                <Listeners>
                    <Update Handler="var b = this.getBody(); this.setSize(b.Ext.getBody().getSize());" Delay="500" />
                </Listeners>
            </ext:Panel>
        </form>
    </body>
    </html>
    Child page
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
    </head>
    <body style="padding:10px;">
        <form id="form1" runat="server">
           <ext:ResourceManager runat="server" />
           <ext:Panel runat="server" Title="I am big panel" Width="800" Height="800" />
        </form>
    </body>
    </html>

Similar Threads

  1. Replies: 2
    Last Post: Mar 29, 2012, 9:00 PM
  2. Grid Panel page size automatically increases
    By Vaishali in forum 1.x Help
    Replies: 1
    Last Post: Feb 22, 2012, 12:37 AM
  3. Replies: 8
    Last Post: Apr 01, 2010, 6:25 PM
  4. [CLOSED] How to identify which page was loaded in a panel?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 26, 2010, 10:42 AM
  5. Replies: 3
    Last Post: Feb 03, 2010, 10:11 AM

Posting Permissions