PDA

View Full Version : [CLOSED] Panel Collapse Button Disappears



softmachine2011
Aug 21, 2012, 7:46 AM
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>

softmachine2011
Aug 21, 2012, 7:48 AM
I think that I have to define Collapsible property and set it to true, but in older version works without it. Is it normal?

Daniil
Aug 21, 2012, 11:33 AM
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.

softmachine2011
Aug 21, 2012, 11:57 AM
You can close thread, solution is set the property explicitly.
Possibly in extjs 3 this property is setted true if collapsed is setted.

Thanks.

Daniil
Aug 21, 2012, 2:05 PM
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>