Jan 28, 2009, 4:05 PM
[FIXED] [V0.8.0] TabPanel index bug
Hello,
TabPanel is throwing an exception if another TabPanel is inside, I'm thinking it has something to do with deferred rendering, please see example and replication steps below:
Example.aspx:
1. Load page
2. Click Tab 1.2
3. Click Tab 1.1
4. Click Tab 1.2
5. Notice exception
Cheers,
Timothy
TabPanel is throwing an exception if another TabPanel is inside, I'm thinking it has something to do with deferred rendering, please see example and replication steps below:
Example.aspx:
<%@ Page Language="C#" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Src="~/Example/ExampleControl.ascx" TagName="Example" TagPrefix="Control" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Example</title>
</head>
<body>
<form runat="server">
<ext:ScriptManager runat="server" AjaxViewStateMode="Include" StateProvider="Cookie" Theme="Gray" />
<asp:ScriptManager runat="server" EnablePartialRendering="True" />
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
<ContentTemplate>
<ext:TabPanel ID="tabs1" runat="server" ActiveTabIndex="0" AutoHeight="True" AutoPostBack="True" AutoWidth="True" DeferredRender="True">
<Tabs>
<ext:Tab ID="tab11" runat="server" Title="1.1" AutoHeight="True">
<Body>
Word 1.1
</Body>
</ext:Tab>
<ext:Tab ID="tab12" runat="server" Title="1.2" AutoHeight="True">
<Body>
<ext:TabPanel ID="tabs2" runat="Server" ActiveTabIndex="0" AutoHeight="True" AutoPostBack="True" AutoWidth="True" DeferredRender="True">
<Tabs>
<ext:Tab ID="tab21" runat="server" Title="2.1" AutoHeight="True">
<Body>
Word 2.1
</Body>
</ext:Tab>
<ext:Tab ID="tab22" runat="server" Title="2.2" AutoHeight="True">
<Body>
Word 2.1
</Body>
</ext:Tab>
</Tabs>
</ext:TabPanel>
</Body>
</ext:Tab>
</Tabs>
</ext:TabPanel>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
Replication steps:1. Load page
2. Click Tab 1.2
3. Click Tab 1.1
4. Click Tab 1.2
5. Notice exception
Cheers,
Timothy