PDA

View Full Version : [FIXED] [V0.8.0] TabPanel Visibility Bug



Timothy
Jan 20, 2009, 9:42 AM
Hello,

I've encountered a complication with the TabPanel in trunk revision 1025. See example below:

Example.aspx:


<%@ Page Language="C#" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

protected void Page_Load(object sender, EventArgs e)
{

}

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Example</title>
</head>
<body>
<form runat="server">
<ext:ScriptManager runat="server" />
<ext:TabPanel ID="TabPanel" runat="server" AutoPostBack="True" DeferredRender="True">
<Tabs>
<ext:Tab ID="Tab1" runat="server" Title="Tab 1">
<Body>
Tab 1
</Body>
</ext:Tab>
<ext:Tab ID="Tab2" runat="server" Title="Tab 2" Visible="False">
<Body>
Tab 2
</Body>
</ext:Tab>
<ext:Tab ID="Tab3" runat="server" Title="Tab 3">
<Body>
Tab 3
</Body>
</ext:Tab>
</Tabs>
</ext:TabPanel>
</form>
</body>
</html>


Replication steps:

1. Load page
2. Switch to Tab 3; fails
3. Remove Visible="False" from Tab 2
4. Reload page
5. Switch to Tab 3; works

I'm using the visibility with my security controller to hide and disable access violations. I would have expected the above to work?

Cheers,
Timothy

geoffrey.mcgill
Jan 21, 2009, 3:35 PM
Confirmed. There is a problem. I'm investigating.

Timothy
Jan 21, 2009, 5:46 PM
Great, thanks Geoffrey. Please keep me posted.

Cheers,
Timothy

Vladimir
Jan 25, 2009, 3:22 PM
Hi Timothy,

Fixed. Please update from SVN
 

Timothy
Jan 26, 2009, 1:20 PM
Bug confirmed, thanks.

Cheers,
Timothy