[CLOSED] [1.0] TabPanel in a ViewPort with IDMode set to Explicit problem

  1. #1

    [CLOSED] [1.0] TabPanel in a ViewPort with IDMode set to Explicit problem

    Hi,

    I have encountered a similar problem as in http://forums.ext.net/showthread.php...4922-16-1.aspx


    This time it is for TabPanel. I don't have the time right now to prepare a full example, but if the below is not enough, let me know.

    ViewPort uses an explicit id mode. If I don't set ID for TabPanel explicity (if I do - it works fine), I get the following JS error:
    "ctl00_content_ctl14 is not defined" The related autogenerated JS code is:

    ctl00_content_ctl14.on("beforetabchange",function(el,newTab){this.getActiveTabField().setValue(newTab.id
    + ':' + el.items.indexOf(newTab));});ctl00_content_ctl14.doLayout();})

    ctl00_content_ctl14 is the TabPanel

    This is a basic outline of the related layout.

    <ext:Viewport ID="viewPort" runat="server" IDMode="Explicit">
            <Content>
                <ext:FitLayout runat="server">
                    <Items>
                        <ext:Panel runat="server">
                            <Content>
                                <ext:BorderLayout runat="server">
                                    <North MinHeight="120" Split="true">
                                        
                                    </North>
                                    <Center>
                                        <ext:Panel runat="server" Border="false">
                                            <Content>
                                                <ext:FitLayout runat="server">
                                                    <Items>
                                                        <ext:TabPanel runat="server" Border="false" ActiveTabIndex="0" DeferredRender="false" >
                                                            <Items>

    Regards,
    Tadeusz
  2. #2

    RE: [CLOSED] [1.0] TabPanel in a ViewPort with IDMode set to Explicit problem

    Hi Tadeusz,

    For the moment, explicitly setting an .ID on the TabPanel will solve the problem. We know what's causing the error, but the code is there to fix a different problem.


    We'll just have to do some testing and update this thread once we have a permanent fix.


    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Version 2.0 Grid not displaying in TabPanel with ViewPort
    By msutton761 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 08, 2012, 10:37 PM
  2. [CLOSED] Layout Problem with ViewPort, TabPanel and UserControls
    By niceguymattx in forum 1.x Legacy Premium Help
    Replies: 16
    Last Post: Nov 08, 2010, 12:25 PM
  3. [CLOSED] [1.0] Grid with PagingToolbar problem with Explicit IDMode
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 05, 2010, 2:36 PM
  4. Add TabPanel Main Page with Viewport
    By Maia in forum 1.x Help
    Replies: 4
    Last Post: Dec 10, 2009, 10:41 PM

Posting Permissions