Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Tabcontainer issue

$
0
0

Hi

I am using a Ajax Tabcontainer in my application.

<asp:TabContainer ID="tabconta1" runat="server" OnDemand="true" TabStripPlacement="Top"
        ScrollBars="None" AutoPostBack="false" ActiveTabIndex="0">
        <asp:TabPanel ID="tabpan1" runat="server" Enabled="true" HeaderText="tab1"
            OnDemandMode="Always">
            <ContentTemplate>
                <asp:Panel ID="pnlgrid1" runat="server">
                    <uc2:Usercontrolgrid ID="grid1" runat="server" EnableViewState="true">
                    </uc2:InvCompGrid>
                </asp:Panel>
                <asp:Panel ID="pnlmsg1" runat="server">
                   some text here
                </asp:Panel>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="tabpan2" runat="server" Enabled="true" HeaderText="tab2" OnDemandMode="Always">
            <ContentTemplate>
                <asp:Panel ID="pnlgrid2" runat="server">
                     <uc2:Usercontrolgrid ID="grid2" runat="server" EnableViewState="true">
                    </uc2:InvCompGrid>
                </asp:Panel>
                <asp:Panel ID="pnlmsg2" runat="server">
                   some text here
                </asp:Panel>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="tabpan3" runat="server" Enabled="true" HeaderText="tab3" OnDemandMode="Always">
            <ContentTemplate>
                <asp:Panel ID="pnlgrid3" runat="server">
                  <uc2:Usercontrolgrid ID="grid3" runat="server" EnableViewState="true">
                    </uc2:InvCompGrid>
                </asp:Panel>
                <asp:Panel ID="pnlmsg3" runat="server">
                   some text here
                </asp:Panel>
            </ContentTemplate>
        </asp:TabPanel>
    </asp:TabContainer>


Now the page work like

if  in tabpanel1 if  pnlgrid1 is visible then pnlmsg1 visible will be false. this will be same for the remaining tabpanels.

if  in tabpanel2 if  pnlgrid2 is visible then pnlmsg2 visible will be false. this will be same for the remaining tabpanels.

if  in tabpanel3 if  pnlgrid3 is visible then pnlmsg3 visible will be false. this will be same for the remaining tabpanels.

so when page is loaded, any one of the control will be visible in each tabpanel.

whenever usercontrol is visible then the remaining controls in another tabpanel is not getting visible. and if no user control in any tabpanel is visible then the tabcontainer is working according to the requirement. i.e pnlmsg1, pnlmsg2, pnlmsg3 are visible in each tabpanel.

Then my issue is why the controls in other tabpanels are not getting visible if usercontrol is getting visible. 

Plz suggest me a way to resolve...

Thanks in advance


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>