[CLOSED] Panel: Is it possible to identify the width/height in pixel from parent container with autosize?

  1. #1

    [CLOSED] Panel: Is it possible to identify the width/height in pixel from parent container with autosize?

    I suppose this has been asked before but I am not sure what keyword to search for.

    Anyway, my code is:
    <ext:ColumnLayout ID="ColumnLayout1" runat="server" FitHeight="true">
        <Columns>
            <ext:LayoutColumn ColumnWidth="1">
                <ext:Panel ID="Panel1" runat="server" Border="false">
                    <Content>
                        <asp:Chart ID="Chart1" runat="server" Height="300px" Width="600px" EnableViewState="true"></asp:Chart>
                    </Content>
                </ext:Panel>
            </ext:LayoutColumn>
        </Columns>
    </ext:ColumnLayout>
    My goal is to resize the Chart so that it will be the same as the size of the panel encapsulating it. But since the panel is autofit, the width and height is zero. Is it possible to capture the size in pixel of the panel and pass it on to the chart?

    Thanks, J
    Last edited by geoffrey.mcgill; Sep 28, 2011 at 3:54 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use AfterRender listener of the Panel1:
    <AfterRender Handler="var size = this.getSize();" Delay="100">

Similar Threads

  1. Replies: 2
    Last Post: Feb 17, 2011, 2:16 AM
  2. Combobox autoSize to List width
    By johnsoftinfos in forum 1.x Help
    Replies: 4
    Last Post: Dec 10, 2010, 8:45 AM
  3. Replies: 15
    Last Post: Jul 19, 2010, 10:15 PM
  4. Full Height for parent Panel when using RowLayout
    By henricook in forum 1.x Help
    Replies: 3
    Last Post: Jun 07, 2010, 12:41 PM
  5. Replies: 4
    Last Post: Feb 23, 2010, 7:38 AM

Posting Permissions