locked
Ajax Tab container not displaying any data in the form. RRS feed

  • Question

  • User1051635487 posted
    <ajax:TabContainer ID="TabContainer1" runat="server" AutoPostBack="true" ForeColor="Gray" CssClass="ajax__tab_custom"
                Height="100%" Width="100%"  ActiveTabIndex="0"  >
            <ajax:TabPanel ID="Tabpnlplasma" runat="server">
                    <HeaderTemplate>Tab1</HeaderTemplate>
                     <ContentTemplate>
                         <asp:DropDownList ID="d1" runat="server" AutoPostBack="true"  >
                         <asp:ListItem>0</asp:ListItem>
                         <asp:ListItem>1</asp:ListItem>
                         <asp:ListItem>2</asp:ListItem>
                         </asp:DropDownList><br />
                         <asp:ListBox ID="l1" runat="server" AutoPostBack="true" >
                         <asp:ListItem>1</asp:ListItem>
                         <asp:ListItem>2</asp:ListItem>
                         <asp:ListItem>3</asp:ListItem>
                         </asp:ListBox>
                     </ContentTemplate>
              </ajax:TabPanel>
               <ajax:TabPanel ID="TabPanel1" runat="server">
                     <HeaderTemplate>Tab2</HeaderTemplate>
                     <ContentTemplate>
                     <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" >
                     <asp:ListItem>one</asp:ListItem>
                     <asp:ListItem>two</asp:ListItem>
                     <asp:ListItem>three</asp:ListItem>
                     </asp:DropDownList><br />
                     <asp:ListBox ID="ListBox1" runat="server" AutoPostBack="true" >
                     <asp:ListItem>one</asp:ListItem>
                     <asp:ListItem>two</asp:ListItem>
                     <asp:ListItem>three</asp:ListItem>
                     </asp:ListBox>
                     </ContentTemplate>
               </ajax:TabPanel>
            </ajax:TabContainer>

    Hi All,

    I am using an Ajax Tab Container and for some reason it is not displaying any data at all. I even called tabpanel1.visible=true on the server side.

    What can I do to fix it?? 

    Monday, March 31, 2014 6:21 PM

Answers

  • User1208776063 posted

    I am using an Ajax Tab Container and for some reason it is not displaying any data at all. I even called tabpanel1.visible=true on the server side.

    Make sure you are using AjaxToolkitScriptManager instead of ScriptManager and set CombineScripts to false. If you are not doing this, TabContainer will be rendered with style Visibility set to hidden. That's why you are not able to see any content.

    <ajax:ToolkitScriptManager runat="server" ID="sc" CombineScripts="false"></ajax:ToolkitScriptManager>
    

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 31, 2014 6:49 PM