[CLOSED] User Control not showing on 2nd Tab

  1. #1

    [CLOSED] User Control not showing on 2nd Tab

    I have a web user control on a page with multiple tabs. The user control is very simple with a textbox and a date field.

    I have 3 instances of this control on the first tab and one on the second tab. The ones on first tab draw fine but the one on the second tab doesnt draw.

    If I set the second tab to load first them the user controls on that tab draw fine but they do not load on the first tab.

    I'm trying to knock together a sample to show you..

  2. #2

    RE: [CLOSED] User Control not showing on 2nd Tab


    Cutdown of the markup which is sat on a master page.

    As is the control on the second tab does not draw but you can see the panel it is in. If I remove the ColumnLayout from the second tab then the control will draw fine.





      <ext:FitLayout ID="FitLayout1" runat="server">
        <ext:TabPanel ID="TabPanel1" runat="server" ActiveTabIndex="0" Border="true">
          <Tabs>
            <%-- First Tab --%>
            <ext:Tab ID="TabOne" runat="server" Title="DC41-Use of Force: Page One" Icon="User">
              <Body>
                <ext:FormPanel ID="pnlRight" runat="server" Border="true" Header="false" MonitorPoll="50"
                  MonitorValid="true" StyleSpec="padding:2px">
                  <Body>
                    <ext:FormLayout ID="FormLayout2" runat="server" LabelAlign="Left" LabelWidth="100">
                      <ext:Anchor>
                        <ext:Panel runat="server" ID="Panel1" Height="250" Width="418" Border="false" StyleSpec="paddingBottom:4px">
                          <Body>
                            <STE:SecureTextEntry runat="server" ID="steActionsTaken" />
                          </Body>
                        </ext:Panel>
                      </ext:Anchor>
                    </ext:FormLayout>
                  </Body>
                </ext:FormPanel>
              </Body>
            </ext:Tab>
            
            <%-- Second Tab --%>
            <ext:Tab ID="TabTwo" runat="server" Title="Page 2" Icon="User">
              <Body>
                <ext:ColumnLayout ID="ColumnLayout1" runat="server">
                  <ext:LayoutColumn ColumnWidth=".5">
                    <ext:FormPanel ID="pnl2Right" runat="server" Border="false" Header="false" MonitorPoll="50"
                      MonitorValid="true" StyleSpec="paddingTop:2px;paddingLeft:15px">
                      <Body>
                        <ext:FormLayout ID="FormLayout4" runat="server" LabelAlign="Left" LabelWidth="300">
                          <ext:Anchor>
                            <ext:Panel runat="server" ID="Panel2" Height="250" Width="400" Border="true" StyleSpec="paddingBottom:4px">
                              <Body>
                                <STE:SecureTextEntry runat="server" ID="steReason" />
                              </Body>
                            </ext:Panel>
                          </ext:Anchor>
                        </ext:FormLayout>
                      </Body>
                    </ext:FormPanel>
                  </ext:LayoutColumn>
                </ext:ColumnLayout>
              </Body>
            </ext:Tab>
          </Tabs>
        </ext:TabPanel>
      </ext:FitLayout>
    (I've attached a zip of the user control if it helps)
    <%@ Register src="~\Controls\SecureTextEntry.ascx" TagName="SecureTextEntry" TagPrefix="STE" %>
  3. #3

    RE: [CLOSED] User Control not showing on 2nd Tab

    Hi,

    Try to set LayoutOnTabChange="true" for TabPanel

Similar Threads

  1. Replies: 7
    Last Post: Jan 29, 2013, 11:59 AM
  2. [CLOSED] ComboBox in user control binding but not showing data
    By Digital.Dynamics in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: May 08, 2012, 12:09 PM
  3. Replies: 2
    Last Post: Feb 06, 2012, 9:06 AM
  4. how to upload user control dynamicaly on user control
    By archana mahadule in forum 1.x Help
    Replies: 1
    Last Post: Jan 13, 2011, 12:05 PM
  5. Replies: 2
    Last Post: Aug 27, 2009, 8:12 AM

Posting Permissions