[CLOSED] Panel Collapse Button Disappears

  1. #1

    [CLOSED] Panel Collapse Button Disappears

    Hi,

    With this test case, when I press collapse button of south region is expanded, but the button disappears and I couldn't collapse again.
    This behaviour isn't the same that in v1.x.

    Any solution?

    <html>
    <head runat="server">
        <title>Ext.NET Test Case</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
            <ext:Viewport runat="server" Layout="FitLayout" Border="false">
                <Items>
                    <ext:Panel runat="server" Border="false" Layout="BorderLayout">
                        <Items>
                            <ext:Panel runat="server" Region="Center" Title="Region Center">
                                <Items>
                                    <ext:Label runat="server" Text="Label in region Center" />
                                </Items>
                            </ext:Panel>
                            <ext:Panel runat="server" Region="South" Title="Region South" Collapsed="true" Height="300">
                                <Items>
                                    <ext:Label runat="server" Text="Label in region South" />
                                </Items>
                            </ext:Panel>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Viewport>
        </form>
    </body>
    </html>
    Last edited by Daniil; Aug 26, 2012 at 10:46 AM. Reason: [CLOSED]
  2. #2
    I think that I have to define Collapsible property and set it to true, but in older version works without it. Is it normal?
  3. #3
    Hi,

    I think it is good that a developer needs to explicitly set up Collapsible to true if he wants a collapse tool in the Panel header when it's expanded.

    This behaviour isn't the same that in v1.x.
    I am unable to reproduce it with your sample.
  4. #4
    You can close thread, solution is set the property explicitly.
    Possibly in extjs 3 this property is setted true if collapsed is setted.

    Thanks.
  5. #5
    Quote Originally Posted by softmachine2011 View Post
    Possibly in extjs 3 this property is setted true if collapsed is setted.
    I doubt. I can't see the collapse tool when expand the South region in the example below.

    Example
    <%@ 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>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Viewport runat="server" Layout="BorderLayout">
                <Items>
                    <ext:Panel runat="server" Region="Center" Title="Region Center">
                        <Items>
                            <ext:Button runat="server" Text="Expand South">
                                <Listeners>
                                    <Click Handler="PanelSouth.expand();" />
                                </Listeners>
                            </ext:Button>
                        </Items>
                    </ext:Panel>
                    <ext:Panel 
                        ID="PanelSouth" 
                        runat="server" 
                        Region="South"
                        Height="300" 
                        Title="Region South" 
                        Collapsed="true">
                        <Items>
                            <ext:Label runat="server" Text="Label in region South" />
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Viewport>
        </form>
    </body>
    </html>

Similar Threads

  1. Replies: 2
    Last Post: Jun 07, 2012, 4:29 PM
  2. Replies: 11
    Last Post: Feb 08, 2012, 8:18 AM
  3. Replies: 4
    Last Post: Oct 21, 2011, 4:48 PM
  4. [CLOSED] Panel: How to hide the Collapse/Expand (+ and -) button?
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 21, 2011, 2:45 AM
  5. [CLOSED] There Collapse button in the tooltip?
    By majunior in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 24, 2011, 12:30 PM

Tags for this Thread

Posting Permissions