problem with ext panel auto height

  1. #1

    problem with ext panel auto height

    Hi,

    How to set auto height for a panel,If i remove Height=1200 and set AutoHeight="true" for panel ( ID="pnlLayout" ), both(ID="LeftMenuPanel",ID="DefaultContent") are not displayed .

    Please help me

    Thanks
    venu

    C#" AutoEventWireup="true" CodeFile="DefaultMaster.master.cs"
        Inherits="Shared_DefaultMaster1" %>
    
    <%@ Register Src="~/Shared/Controls/HeaderMenu.ascx" TagName="TopMenu" TagPrefix="tm1" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
    <%@ Register Src="~/Shared/Controls/LeftMenu.ascx" TagPrefix="LM" TagName="LeftMenu" %>
    <!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="Head" runat="server">
        <meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" />
        <meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />
        
        <link rel="Save icon" href="../App_Themes/Default/Images/logo.PNG" type="image/x-icon" />
        
    </head>
    <body>
        <form id="mainForm" runat="server">
      
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <table width="99.5%" border="0" cellspacing="0" cellpadding="0" class="mainwrapper"
            style="min-width: 750px;">
            <tr>
                <td style="padding-left: 1px">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="topbarbackground">
                        <tr>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td class="topbarlogo" style="width: 33%">
                                        </td>
                                        <td align="left" style="width: 65%">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 33%">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" style="width: 33%; font-family: Agency FB; font-size: 30px; color: #1B4883;
                                                        padding-bottom: 3px">
                                                        Title
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 34%; font-family: Arial;" align="right">
                                                        <em style="font-size: 13px; color: #0874BC;">Signed in as
                                                            <asp:LoginName ID="lgnUsn" runat="server" Font-Size="10pt" />
                                                        </em><em style="font-size: 10px; font-weight: bold;">|</em>
                                                        <asp:LinkButton ID="lnkBtnHome" runat="server" Font-Size="10pt" Font-Italic="false"
                                                            OnClick="btnHome_Click" CssClass="LogoTextColor">Home</asp:LinkButton>
                                                        <em style="font-size: 10px; font-weight: bold;">|</em>
                                                        <asp:LinkButton ID="lnkMyAccount" runat="server" Font-Size="10pt" Font-Italic="false"
                                                            CssClass="LogoTextColor" OnClick="btnLink_Click">My Account</asp:LinkButton>
                                                        <em style="font-size: 10px; font-weight: bold;">|</em>
                                                        <asp:LinkButton ID="lnkBtnHlp" runat="server" Font-Size="10pt" Font-Italic="false"
                                                            CssClass="LogoTextColor">Support</asp:LinkButton>
                                                        <em style="font-size: 10px; font-weight: bold;">|</em>
                                                        <asp:LoginStatus ID="LoginStatus1" runat="server" Font-Size="10pt" OnLoggedOut="OnLogOut"
                                                            CssClass="LogoTextColor" Font-Italic="false" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="width: 2%">
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="TopMenu_Content">
                    <tm1:TopMenu ID="topMenu" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <div id="content-place">
                        <ext:Panel runat="server" ID="pnlLayout" AutoWidth="true" Border="false" Height="1200">
                            <Content>
                                <ext:BorderLayout ID="bLayout" runat="server">
                                    <West Collapsible="True" MinWidth="175px">
                                        <ext:Panel ID="WestPanel" runat="server" Title=" Menu " Width="250px">
                                            <Content>
                                                <LM:LeftMenu ID="LeftMenuPanel" runat="server" />
                                            </Content>
                                        </ext:Panel>
                                    </West>
                                    <Center>
                                        <ext:Panel ID="pnlMain" runat="server" Width="1400px">
                                            <Content>
                                                <asp:ContentPlaceHolder ID="DefaultContent" runat="server" />
                                            </Content>
                                        </ext:Panel>
                                    </Center>
                                </ext:BorderLayout>
                            </Content>
                        </ext:Panel>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="left">
                    Copyright &copy; 2011 
                </td>
            </tr>
        </table>
        </form>
    </body>
    </html>
    Last edited by geoffrey.mcgill; Aug 10, 2011 at 7:07 AM. Reason: please use [CODE] tags
  2. #2

    problem with ext panel auto height

    Hi,

    No reply?
    I am waiting for solution

    Thanks
    venu
  3. #3
    BorderLayout cannot be used with container without size (container must have fixed size or must be placed inside another container with layout)
    Why do you use table for design? It is better to use Ext.Net layouts

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. Vertical Auto Height
    By Zdenek in forum 1.x Help
    Replies: 5
    Last Post: Dec 01, 2011, 8:34 PM
  3. Replies: 4
    Last Post: Sep 01, 2011, 6:09 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] Auto Height
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 19, 2008, 6:43 AM

Posting Permissions