How to disable a tab

3 posts, 1 answers
  1. Christian
    Christian avatar
    97 posts
    Member since:
    Mar 2009

    Posted 16 Apr 2009 Link to this post

    Hello,

    I use a RadTabStrip with 4 Tabs and I need to disable some tabs at some time.

    I tried it with the following code:

        Private Sub DisbableTab(ByVal actualTab As Integer)  
     
            Dim Tabs As RadTabStrip = RadTabStrip1  
            For Each tab As RadTab In Tabs.GetAllTabs()  
                If tab IsNot Nothing And tab.Index = actualTab Then 
                    tab.PostBack = False 
                End If 
            Next 
     
        End Sub 


    The postback-Event now not fires, but the Tabs get marked as selected if we click with the mouse on the tab.

    How can we supress this?

    Thanks

    Christian
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 17 Apr 2009 Link to this post

    Hello Christian,

    Check out the following demo which illustrates on how to disable tabs in a TabStrip:
    Add/Remove/Disable Tabs

    Thanks
    Princy.
  3. Christian
    Christian avatar
    97 posts
    Member since:
    Mar 2009

    Posted 17 Apr 2009 Link to this post

    Thanks.

    I've read the artikel.

    With InnermostSelectedTab I can disable the actual selected Tab, but how can I disable other tabs?

    Christian
Back to Top