[FIXED] [V0.8.0] TabPanel index bug

  1. #1

    [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:
    <%@ 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

  2. #2

    RE: [FIXED] [V0.8.0] TabPanel index bug

    Hi Timothy,

    Fixed. Please update.
     
    Vladimir Shcheglov
    Sr. Developer
  3. #3

    RE: [FIXED] [V0.8.0] TabPanel index bug

    Confirmed, thanks vlad.

    Cheers,
    Timothy

Similar Threads

  1. TabPanel 'ActiveItem/Index' property
    By DougMcDonald in forum 1.x Help
    Replies: 6
    Last Post: Aug 23, 2011, 1:14 PM
  2. Replies: 1
    Last Post: Jul 30, 2011, 4:59 PM
  3. Replies: 3
    Last Post: Oct 17, 2010, 2:22 PM
  4. Replies: 0
    Last Post: May 22, 2009, 8:59 AM
  5. Set TabPanel index
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Feb 19, 2009, 4:34 PM

Posting Permissions