locked
Tab container Issue after updating AjaxControlToolkit to 16.1 RRS feed

  • Question

  • User-922833459 posted

    Hy 

    After updating the AjaxControlToolkit to 16.1, I have an issue with TabContainer.

    Each tab I visit, has a CssClass attached to it: ajax__tab_xp .ajax__tab_disabled .ajax__tab_tab and it is never removed. This is an issue because we have specific styles for disabled tabs. (Asp.Net WebForms)

    Here is a sample project that shows the issue: https://we.tl/EeDOKGhazv 

    Thank you
     

    Thursday, April 7, 2016 6:51 AM

Answers

  • User61956409 posted

    Hi cristinadoro,

    As far as I know, if you set Enabled="false" to TabPanel, the “ajax__tab_disabled” CSS class will applied to this tab.

    <div>
        <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" Height="150px" ActiveTabIndex="0">
            <ajaxToolkit:TabPanel ID="TabPanel1" runat="server" Enabled="false">
                <HeaderTemplate>
                    Tab1
                </HeaderTemplate>
                <ContentTemplate>
                    Content1
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel ID="TabPanel2" runat="server">
                <HeaderTemplate>
                    Tab2
                </HeaderTemplate>
                <ContentTemplate>
                    Content2
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>
    </div>
    

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 8, 2016 3:21 AM