This is a migrated thread and some comments may be shown as answers.

How to disable a tab

2 Answers 249 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 16 Apr 2009, 04:25 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 17 Apr 2009, 05:19 AM
Hello Christian,

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

Thanks
Princy.
0
Christian
Top achievements
Rank 1
answered on 17 Apr 2009, 07:14 AM
Thanks.

I've read the artikel.

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

Christian
Tags
TabStrip
Asked by
Christian
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Christian
Top achievements
Rank 1
Share this question
or